1052 - Column 'products_id' in from clause is ambiguous
select count(distinct p.products_id) as total 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)),
p.products_status = '1'
and f.status ='1'
and p.products_id = f.products_id
and pd.products_id = p.products_id
and pd.language_id = '1'
and p.products_group_access like '%G%'