1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 17

SELECT DISTINCT p.products_id, pd.products_name, p.products_price, p.products_ei_myynnissa, p.products_tax_class_id, p.products_image, pt.specials_new_products_price, p.products_model, p.products_ylimyynti, p.products_quantity, p.products_id, p.products_price, p.products_tax_class_id, IF(pt.status, pt.specials_new_products_price, NULL) as specials_new_products_price, IF(pt.status, pt.specials_new_products_price, p.products_price) as final_price FROM products p LEFT JOIN specials pt ON p.products_id = pt.products_id, products_description pd LEFT JOIN products_to_categories p2c using(products_id) LEFT JOIN categories c using(categories_id) WHERE p.products_status = '1' AND pt.status = '1' AND p.products_id = pd.products_id AND p.products_id = pt.products_id AND pt.customers_group_id = '0' AND pd.language_id = '4' AND find_in_set('0', products_hide_from_groups) = 0 AND find_in_set('0', categories_hide_from_groups) = 0 ORDER BY pt.specials_date_added desc, pd.products_name limit 0,

[TEP STOP]