Products meeting the search criteria Products meeting the search criteria
select distinct p.products_image, p.products_id, pd.products_name, pd.products_description, p.products_price, p.products_tax_class_id from products p left join products_description pd on p.products_id = pd.products_id left join products_to_categories p2c on pd.products_id = p2c.products_id left join categories c on p2c.categories_id = c.categories_id left join categories_description cd on cd.categories_id = c.categories_id left join products_attributes pa on pa.products_id = p.products_id 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 '%janitorial-cleaning-tips%' or p.products_model like '%janitorial-cleaning-tips%') ) order by pd.products_name1109 - Unknown table 'p' in field list

select count(p.products_id) as total