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)),
products_description pd
where
p.products_status = '1'
and pd.products_id = p.products_id
and pd.language_id = '1'
and DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= p.products_date_added