1052 - Column 'products_id' in from clause is ambiguous
select distinct
p.products_id,
p.products_image,
p.products_price,
p.manufacturers_id,
pd.products_name,
p.products_tax_class_id,
if (isnull(pg.customers_group_price), p.products_price, pg.customers_group_price) as products_price,
p.products_date_added,
p.products_image
from ((products p
left join products_groups pg on p.products_id = pg.products_id and pg.customers_group_id = 'G')
left join specials s using(products_id)),
products_description pd,
featured f
where
p.products_status = '1'
and f.status = '1'
and p.products_id = f.products_id
and pd.products_id = f.products_id
and pd.language_id = '1'
and p.products_group_access like '%G%'
order by rand(),p.products_date_added DESC, pd.products_name