Tygh\Exceptions\AException

Message

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT netting_images.*, netting_images_links.*, netting_common_descriptions....' at line 1 (1064)

SELECT netting_images.*, netting_images_links.*, netting_common_descriptions.description AS alt, netting_images.image_id AS images_image_id FROM netting_images_links LEFT JOIN netting_images ON netting_images_links.image_id = netting_images.image_id LEFT JOIN netting_common_descriptions ON netting_common_descriptions.object_id = netting_images.image_id AND netting_common_descriptions.object_holder = 'images' AND netting_common_descriptions.lang_code = 'en' WHERE netting_images_links.object_type = 'category' AND netting_images_links.type = 'M' AND netting_images_links.object_id IN (297, 366, 401, 382, 276, 290, 335, 361, 392, 434, 419, 369, 416, 378, 274, 451, 331, 347, 444, 373, 376, 304, 275, 310, 447, 383, 265, 282, 381, 400, 384, 334, 441, 333, 466) ORDER BY netting_images_links.position, netting_images_links.pair_id;SELECT netting_images.*, netting_images_links.*, netting_common_descriptions.description AS alt, netting_images.image_id AS images_image_id FROM netting_images_links LEFT JOIN netting_images ON netting_images_links.detailed_id = netting_images.image_id LEFT JOIN netting_common_descriptions ON netting_common_descriptions.object_id = netting_images.image_id AND netting_common_descriptions.object_holder = 'images' AND netting_common_descriptions.lang_code = 'en' WHERE netting_images_links.object_type = 'category' AND netting_images_links.type = 'M' AND netting_images_links.object_id IN (297, 366, 401, 382, 276, 290, 335, 361, 392, 434, 419, 369, 416, 378, 274, 451, 331, 347, 444, 373, 376, 304, 275, 310, 447, 383, 265, 282, 381, 400, 384, 334, 441, 333, 466) ORDER BY netting_images_links.position, netting_images_links.pair_id

Error at

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

Backtrace

File:app/Tygh/Database/Connection.php
Line:1490
Function:throwError
File:app/Tygh/Database/Connection.php
Line:700
Function:execQuery
File:app/Tygh/Database/Connection.php
Line:333
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:727
Function:include
File:app/functions/fn.control.php
Line:458
Function:fn_run_controller
File:index.php
Line:19
Function:fn_dispatch