1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*select distinct p.products_id, p.products_image, p.products_tax_class_id, IF(s.' at line 1
*select distinct p.products_id, p.products_image, p.products_tax_class_id, IF(s.status = '1' AND s.stores_id = '3', s.specials_new_products_price, p.products_price) as products_price from (products p, products_to_categories p2c, categories c) left join specials s on p.products_id = s.products_id and s.stores_id = '3' INNER JOIN products_to_stores p2s ON p.products_id = p2s.products_id where p2s.stores_id = '3' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '33' and p.products_status = '1' order by p.products_date_added desc limit 18