1054 - Unknown column 'p.products_id' in 'on clause'
select count(*) as total from products_description pd, products p, products_to_categories p2c, categories_description cd left join specials s on p.products_id = s.products_id where p.products_status = '1' and to_days(p.products_date_available) >= to_days(now()) and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '4' and cd.categories_id = p2c.categories_id and cd.language_id = '4'