Tygh\Exceptions\AException

Message

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 'SELECT cscart_images.*, cscart_images_links.*, cscart_common_descriptions.descri' at line 1 (1064)

SELECT cscart_images.*, cscart_images_links.*, cscart_common_descriptions.description AS alt, cscart_images.image_id AS images_image_id FROM cscart_images_links LEFT JOIN cscart_images ON cscart_images_links.image_id = cscart_images.image_id LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id AND cscart_common_descriptions.object_holder = 'images' AND cscart_common_descriptions.lang_code = 'en' WHERE cscart_images_links.object_type = 'product' AND cscart_images_links.type = 'A' AND cscart_images_links.object_id IN (351612, 352403, 353662, 354659, 354938, 356566, 357755, 357764, 359035, 350308, 351499, 352647, 356228, 356851, 357797, 358556, 350029, 358941, 349836, 350268, 350368, 351541, 354515, 354642, 356094, 350097, 351045, 351815, 352157, 352170, 352364, 353781, 354169, 355537, 356506, 356861, 358535, 354658, 354714, 355301, 356246, 350306, 350670, 353632, 349939, 352530, 353854, 356306, 356544, 358670, 350351, 349772, 349890, 350282, 350342, 353127, 354261, 354675, 355540, 356392, 358292, 349736, 349887, 349943, 350375, 353459, 354694, 354873, 359419, 352803, 355567, 351312, 354235, 355500, 355793, 356645, 349694, 349826, 351595, 354250, 354734, 358441, 359053, 352613, 353085, 353938, 354120, 354124, 356294, 357584, 359116, 353517, 354432, 354541, 356325, 356896, 351436, 355573, 358867, 359228) ORDER BY cscart_images_links.position, cscart_images_links.pair_id;SELECT cscart_images.*, cscart_images_links.*, cscart_common_descriptions.description AS alt, cscart_images.image_id AS images_image_id FROM cscart_images_links LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id AND cscart_common_descriptions.object_holder = 'images' AND cscart_common_descriptions.lang_code = 'en' WHERE cscart_images_links.object_type = 'product' AND cscart_images_links.type = 'A' AND cscart_images_links.object_id IN (351612, 352403, 353662, 354659, 354938, 356566, 357755, 357764, 359035, 350308, 351499, 352647, 356228, 356851, 357797, 358556, 350029, 358941, 349836, 350268, 350368, 351541, 354515, 354642, 356094, 350097, 351045, 351815, 352157, 352170, 352364, 353781, 354169, 355537, 356506, 356861, 358535, 354658, 354714, 355301, 356246, 350306, 350670, 353632, 349939, 352530, 353854, 356306, 356544, 358670, 350351, 349772, 349890, 350282, 350342, 353127, 354261, 354675, 355540, 356392, 358292, 349736, 349887, 349943, 350375, 353459, 354694, 354873, 359419, 352803, 355567, 351312, 354235, 355500, 355793, 356645, 349694, 349826, 351595, 354250, 354734, 358441, 359053, 352613, 353085, 353938, 354120, 354124, 356294, 357584, 359116, 353517, 354432, 354541, 356325, 356896, 351436, 355573, 358867, 359228) ORDER BY cscart_images_links.position, cscart_images_links.pair_id

Error at

app/Tygh/Database/Connection.php, line: 1712

Backtrace

File:app/Tygh/Database/Connection.php
Line:1489
Function:throwError
File:app/Tygh/Database/Connection.php
Line:699
Function:execQuery
File:app/Tygh/Database/Connection.php
Line:332
Function:query
File:app/functions/fn.database.php
Line:35
Function:getArray
File:app/controllers/common/debugger.php
Line:60
Function:db_get_array
File:app/functions/fn.control.php
Line:722
Function:include
File:app/functions/fn.control.php
Line:458
Function:fn_run_controller
File:index.php
Line:19
Function:fn_dispatch