Products meeting the search criteria

List View



select distinct p.products_quantity, p.products_date_available, p.products_image, m.manufacturers_id, p.products_id, pd.products_name, pd.products_subtitle, pd.products_subtitle, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description pd, categories c, products_to_categories p2c, categories_description cd WHERE c.hidden = '0' AND 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 cd.categories_id = c.categories_id AND (p.products_quantity > '0' OR p.products_date_available >= (NOW() - INTERVAL 1 DAY)) and ((pd.products_name LIKE '%batman%' OR pd.products_subtitle LIKE '%batman%' OR p.products_model LIKE '%batman%' OR m.manufacturers_name LIKE '%batman%' OR cd.categories_name LIKE '%batman%' )) order by p.products_date_added DESC, pd.products_name, p.products_id