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 'pd.products_name limit 0, 40' at line 1 select p.products_id, p.products_image, p.products_tax_class_id, p.products_color, p.products_related_code, p.products_special_text, p.manufacturers_id, p.products_price as old_products_price, p.products_color, p.products_color_code, pd.products_name, pd.products_display_name, p.products_price, p.products_coming_soon_status,p.products_stocks_status, p.address_key, p.products_new_in_start, p.products_hot_item_start, p.products_bestseller_start, p.products_new_in, p.products_hot_item, p.products_bestseller, p.products_preorder_start, p.products_preorder, products_related_tag, p.pwp_group_id, p.products_preorder_status, p.products_visible_group, p.products_ordered from products p left join specials s on p.products_id = s.products_id, products_description pd where p.products_status = '1' and p.products_free_gift_status = '0' and p.products_third_party_status = '0' and p.products_id = pd.products_id and pd.language_id = '1' order by CASE WHEN p.products_quantity > 0 THEN 0 ELSE 1 END, p.products_date_added desc pd.products_name limit 0, 40 [TEP STOP] |