1054 - Unknown column 'p.products_id' in 'on clause'
select count(*) as total from products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join products_description pd on p.products_id = pd.products_id and pd.language_id = '1' left join specials s on p.products_id = s.products_id, featured f left join products_prices pp on p.products_id = pp.products_id and pp.groups_id = '0' and pp.currencies_id = '0' where p.products_id = f.products_id and p.products_status = 1 and if(pp.products_group_price is null, 1, pp.products_group_price != -1 ) and f.status = '1' and f.affiliate_id = 0