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 = 'M' AND cscart_images_links.object_id IN (430926, 430940, 431264, 431301, 431339, 431426, 435509, 430782, 430879, 431020, 431022, 431193, 430816, 431275, 339726, 430661, 430794, 431171, 430641, 430788, 430811, 430839, 431334, 339825, 430675, 430742, 430863, 430968, 431055, 430953, 431428, 430805, 430894, 431005, 431098, 431244, 339855, 339718, 430688, 430755, 430800, 430826, 430917, 430952, 430979, 431006, 431262, 430713, 430874, 431028, 431336, 431504, 430778, 430827, 430852, 430855, 430856, 430931, 430991, 431000, 431027, 431101, 431451, 431177, 431184, 431358, 430864, 431469, 430694, 430780, 431234, 431368, 339675, 430671, 430918, 430995, 431342, 430897, 431420, 430702, 430706, 430840, 430878, 430888, 430977, 430990, 431357, 339597, 430666, 431010, 431344, 430667, 430871, 431297, 431381, 339782, 381709, 430692, 430997, 431025) 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 = 'M' AND cscart_images_links.object_id IN (430926, 430940, 431264, 431301, 431339, 431426, 435509, 430782, 430879, 431020, 431022, 431193, 430816, 431275, 339726, 430661, 430794, 431171, 430641, 430788, 430811, 430839, 431334, 339825, 430675, 430742, 430863, 430968, 431055, 430953, 431428, 430805, 430894, 431005, 431098, 431244, 339855, 339718, 430688, 430755, 430800, 430826, 430917, 430952, 430979, 431006, 431262, 430713, 430874, 431028, 431336, 431504, 430778, 430827, 430852, 430855, 430856, 430931, 430991, 431000, 431027, 431101, 431451, 431177, 431184, 431358, 430864, 431469, 430694, 430780, 431234, 431368, 339675, 430671, 430918, 430995, 431342, 430897, 431420, 430702, 430706, 430840, 430878, 430888, 430977, 430990, 431357, 339597, 430666, 431010, 431344, 430667, 430871, 431297, 431381, 339782, 381709, 430692, 430997, 431025) 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