1054 - Unknown column 'p.products_id' in 'on clause'
select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%half%' or p.products_model like '%half%' or m.manufacturers_name like '%half%') and (pd.products_name like '%price%' or p.products_model like '%price%' or m.manufacturers_name like '%price%') and (pd.products_name like '%line%' or p.products_model like '%line%' or m.manufacturers_name like '%line%') and (pd.products_name like '%rental%' or p.products_model like '%rental%' or m.manufacturers_name like '%rental%') and (pd.products_name like '%on%' or p.products_model like '%on%' or m.manufacturers_name like '%on%') and (pd.products_name like '%orange%' or p.products_model like '%orange%' or m.manufacturers_name like '%orange%') and (pd.products_name like '%business%' or p.products_model like '%business%' or m.manufacturers_name like '%business%') )