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 ') AS t1 JOIN altstar_1c_analogs ON (A1=product_id AND S1=man_id) WHERE altstar_1' at line 14<br />Error No: 1064<br />SELECT DISTINCT altstar_product.product_id FROM altstar_product JOIN altstar_manufacturer ON altstar_product.manufacturer_id = altstar_manufacturer.manufacturer_id JOIN altstar_product_to_category apc ON apc.product_id = altstar_product.product_id JOIN altstar_category_description acd ON acd.category_id = apc.category_id JOIN (SELECT DISTINCT product_id as model ,man_id AS manufacturer_id_old, (SELECT name FROM altstar_manufacturer WHERE manufacturer_id_old=t2.p_man) AS analog_man_name, t2.p_id as analog_model FROM (SELECT ref_code AS A2,man_analog_id AS S2,t1.p_id,t1.p_man FROM (SELECT DISTINCT product_id AS A1,man_id AS S1,altstar_1c_applicabilities.parent_id as p_id,altstar_1c_applicabilities.man_parent_id as p_man FROM altstar_ in C:\WebServers\home\192.168.1.80\opt2.app\upload\system\library\db\mysqli.php on line 41