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 (339776, 339474, 339552, 339649, 339743, 339756, 339647, 339665, 339470, 339773, 339577, 339848, 339703, 339749, 339669, 339455, 339666, 339789, 339651, 339565, 339544, 339626, 339670, 339543, 339646, 339824, 339833, 339834, 339575, 339784, 339698, 339830, 339631, 339628, 339662, 339767, 339557, 339567, 339549, 339595, 339823, 339673, 339853, 339658, 339717, 339763, 339852, 339542, 339818, 339653, 339487, 339822, 339472, 339613, 339682, 339480, 339555, 339639, 339560, 339579, 339680, 339559, 339788, 339850, 339854, 339815, 339772, 339561, 339785, 339766, 339475, 339688, 339566, 339661, 339558, 339819, 339585, 339837, 339563, 339640, 339568, 339790, 339578, 339634, 339598, 339629, 339672, 339546, 339844, 339641, 339832, 339840, 339624, 339627, 339687, 339842, 339612, 339827, 339642, 339800) 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 (339776, 339474, 339552, 339649, 339743, 339756, 339647, 339665, 339470, 339773, 339577, 339848, 339703, 339749, 339669, 339455, 339666, 339789, 339651, 339565, 339544, 339626, 339670, 339543, 339646, 339824, 339833, 339834, 339575, 339784, 339698, 339830, 339631, 339628, 339662, 339767, 339557, 339567, 339549, 339595, 339823, 339673, 339853, 339658, 339717, 339763, 339852, 339542, 339818, 339653, 339487, 339822, 339472, 339613, 339682, 339480, 339555, 339639, 339560, 339579, 339680, 339559, 339788, 339850, 339854, 339815, 339772, 339561, 339785, 339766, 339475, 339688, 339566, 339661, 339558, 339819, 339585, 339837, 339563, 339640, 339568, 339790, 339578, 339634, 339598, 339629, 339672, 339546, 339844, 339641, 339832, 339840, 339624, 339627, 339687, 339842, 339612, 339827, 339642, 339800) 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