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 ') and p.products_status = '1' and p.products_id = pd.products_id and pd.language' at line 1

SELECT distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name, s.specials_new_products_price, p.products_price, p.products_quantity, s.status as discount_enabled FROM products p LEFT JOIN specials s on p.products_id = s.products_id, products_description pd, products_to_categories p2c, categories c WHERE p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id IN() and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '2' and p.discontinued = 0 and p.replacement_product_id = 0 ORDER BY p.products_quantity != 0 DESC, pd.products_name

[TEP STOP]