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 (309474, 309478, 206988, 391625, 309476, 391630, 262380, 309469, 391629, 391627, 309470, 252156, 206990, 206986, 309475, 309431, 391628, 206991, 309472, 252154, 391631, 339432, 265269, 206468, 339433, 262428, 308644, 206965, 13481, 13466, 339438, 339434, 262429, 206983, 308657, 206950, 262440, 262370, 259698, 262437, 230172, 206929, 308646, 339439, 13488, 339445, 206977, 13474, 262430, 262436, 252155, 262434, 262432, 13486, 339440, 206993, 262441, 230173, 173883, 262400, 13468, 339511, 339515, 206933, 339441, 13469, 254299, 252159, 13485, 427782, 13484, 252157, 254297, 225088, 253161, 262359, 262438, 253198, 262435, 225081, 253157, 225074, 262439, 81573, 81586, 35390, 254305, 225053, 159862, 13487, 38238, 262399, 225066, 262394, 252161, 262442, 252162, 287, 286682, 81610) 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 (309474, 309478, 206988, 391625, 309476, 391630, 262380, 309469, 391629, 391627, 309470, 252156, 206990, 206986, 309475, 309431, 391628, 206991, 309472, 252154, 391631, 339432, 265269, 206468, 339433, 262428, 308644, 206965, 13481, 13466, 339438, 339434, 262429, 206983, 308657, 206950, 262440, 262370, 259698, 262437, 230172, 206929, 308646, 339439, 13488, 339445, 206977, 13474, 262430, 262436, 252155, 262434, 262432, 13486, 339440, 206993, 262441, 230173, 173883, 262400, 13468, 339511, 339515, 206933, 339441, 13469, 254299, 252159, 13485, 427782, 13484, 252157, 254297, 225088, 253161, 262359, 262438, 253198, 262435, 225081, 253157, 225074, 262439, 81573, 81586, 35390, 254305, 225053, 159862, 13487, 38238, 262399, 225066, 262394, 252161, 262442, 252162, 287, 286682, 81610) 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