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 'p.products_date_added desc, LIMIT 4' at line 9

SELECT p.products_id, p.products_image_med as products_image, p.products_price, p.products_tax_class_id, pd.products_name, 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_shd p iNNER JOIN products_description_shd pd ON p.products_id = pd.products_id AND pd.language_id = '1' INNER JOIN products_to_categories_shd p2c ON p.products_id = p2c.products_id AND p2c.categories_id = 215 LEFT JOIN specials_shd s ON p.products_id = s.products_id WHERE LEFT(p.products_date_available, 10) <= '2017-10-18' AND p.products_status = '1' GROUP BY p.products_id p.products_date_added desc, LIMIT 4

[TEP STOP]