Fatal error: Uncaught Exception: Error: 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 '(nom.product_id = '6306-2NSE9C3' AND man.name = 'NACHI') ORDER by sorter DESC, a' at line 7<br />Error No: 1064<br />SELECT nom.product_id,man.name,a1l.latest as sorter FROM altstar_1c_nomenclature nom JOIN altstar_manufacturer man ON man.manufacturer_id_old = nom.man_id LEFT JOIN altstar_1c_prior_nom pr_nom ON nom.analog_id = pr_nom.product_id LEFT JOIN altstar_category ac ON ac.category_id_old = nom.catalog_id LEFT JOIN altstar_product a1l ON (a1l.model = nom.product_id and a1l.manufacturer_id = man.manufacturer_id) WHERE (nom.product_id = '6004-2NSE9C3' AND man.name = 'NACHI') OR (nom.product_id = '6004-2NSE9C3' AND man.name = 'NACHI') OR (nom.product_id = '6201-2NSE9C3' AND man.name = 'NACHI') OR (nom.product_id = '6201-2NSE9C3' AND man.name = 'NACHI') OR (nom.product_id = '6201-2NSE9CM in C:\WebServers\home\\opt2.app\upload\system\library\db\mysqli.php on line 41