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 'ORDER by sorter DESC, ac.sort_order ASC, pr_nom.prior DESC' at line 6<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 ORDER by sorter DESC, ac.sort_order ASC, pr_nom.prior DESC in E:\from_c_files\opt2.app\upload\system\library\db\mysqli.php:41 Stack trace: #0 E:\from_c_files\opt2.app\upload\system\library\db.php(17): DB\MySQLi->query('SELECT nom.prod...', Array) #1 E:\from_c_files\opt2.app\upload\catalog\controller\presen in E:\from_c_files\opt2.app\upload\system\library\db\mysqli.php on line 41