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 (394196, 431190, 430574, 431092, 431106, 431147, 430849, 431162, 431128, 431099, 431132, 431202, 430637, 430639, 431096, 431168, 431141, 431153, 431137, 431155, 431033, 431130, 430911, 430640, 431134, 431125, 431154, 431090, 431146, 431065, 431067, 431187, 431048, 431094, 430697, 430767, 431050, 431104, 430745, 431124, 431117, 431191, 431157, 431160, 430681, 431116, 430743, 430850, 430908, 431084, 431107, 430998, 431026, 430655, 430744, 431100, 431115, 430915, 430916, 430636, 430924, 431195, 430747, 430803, 431176, 431203, 430748, 431204, 431133, 430648, 431196, 430823, 431158, 431199, 431122, 430903, 430848, 431139, 430831, 431150, 430665, 430696, 431145, 431102, 430771, 430907, 430649, 430646, 430647, 430912, 430935, 430638, 430766, 431097, 431151, 430821, 430824, 431359, 430857, 431201) 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 (394196, 431190, 430574, 431092, 431106, 431147, 430849, 431162, 431128, 431099, 431132, 431202, 430637, 430639, 431096, 431168, 431141, 431153, 431137, 431155, 431033, 431130, 430911, 430640, 431134, 431125, 431154, 431090, 431146, 431065, 431067, 431187, 431048, 431094, 430697, 430767, 431050, 431104, 430745, 431124, 431117, 431191, 431157, 431160, 430681, 431116, 430743, 430850, 430908, 431084, 431107, 430998, 431026, 430655, 430744, 431100, 431115, 430915, 430916, 430636, 430924, 431195, 430747, 430803, 431176, 431203, 430748, 431204, 431133, 430648, 431196, 430823, 431158, 431199, 431122, 430903, 430848, 431139, 430831, 431150, 430665, 430696, 431145, 431102, 430771, 430907, 430649, 430646, 430647, 430912, 430935, 430638, 430766, 431097, 431151, 430821, 430824, 431359, 430857, 431201) 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