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 ')) AND (0 OR cscart_categories.category_id=291 OR cscart_categories.category_id' at line 1 (1064)

SELECT cscart_categories.category_id,cscart_categories.parent_id,cscart_categories.id_path,cscart_category_descriptions.category,cscart_categories.position,cscart_categories.status,cscart_seo_names.name as seo_name,cscart_seo_names.path as seo_path,cscart_categories.age_verification,cscart_categories.age_limit,cscart_category_descriptions.age_warning_message FROM cscart_categories LEFT JOIN cscart_category_descriptions ON cscart_categories.category_id = cscart_category_descriptions.category_id AND cscart_category_descriptions.lang_code = 'ru' LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = cscart_categories.category_id AND cscart_seo_names.type = 'c' AND cscart_seo_names.dispatch = '' AND cscart_seo_names.lang_code = 'ru' WHERE 1=1 AND (cscart_categories.usergroup_ids = '' OR FIND_IN_SET(0, cscart_categories.usergroup_ids) OR FIND_IN_SET(1, cscart_categories.usergroup_ids)) AND cscart_categories.status IN ('A') AND ((cscart_categories.category_id=)) AND (0 OR cscart_categories.category_id=291 OR cscart_categories.category_id=371 OR cscart_categories.category_id=381 OR cscart_categories.category_id=384 OR cscart_categories.category_id=385 OR cscart_categories.category_id=386 OR cscart_categories.category_id=387 OR cscart_categories.category_id=388 OR cscart_categories.category_id=393 OR cscart_categories.category_id=394 OR cscart_categories.category_id=450) AND (cscart_categories.category_id<>393) ORDER BY cscart_categories.is_trash asc, cscart_categories.position asc, cscart_category_descriptions.category asc

Error at

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

Backtrace

File:app/Tygh/Database/Connection.php
Line:500
Function:throwError
File:app/Tygh/Database/Connection.php
Line:261
Function:query
File:app/functions/fn.database.php
Line:45
Function:getHash
File:app/functions/fn.catalog.php
Line:1624
Function:db_get_hash_array
File:app/Tygh/BlockManager/Block.php
Line:809
Function:fn_get_categories
File:app/Tygh/BlockManager/RenderManager.php
Line:778
Function:getItems
File:app/Tygh/BlockManager/RenderManager.php
Line:644
Function:getValue
File:app/Tygh/BlockManager/RenderManager.php
Line:475
Function:renderBlockContent
File:app/Tygh/BlockManager/RenderManager.php
Line:397
Function:renderBlock
File:app/Tygh/BlockManager/RenderManager.php
Line:357
Function:renderBlocks
File:app/Tygh/BlockManager/RenderManager.php
Line:222
Function:renderGrid
File:app/Tygh/BlockManager/RenderManager.php
Line:192
Function:renderGrids
File:app/Tygh/BlockManager/RenderManager.php
Line:156
Function:_renderContainer
File:app/functions/smarty_plugins/function.render_location.php
Line:48
Function:render
File:var/cache/templates/responsive/828850f43e1789edad6b828c90f3dab13d201370.tygh.index.tpl.php
Line:181
Function:smarty_function_render_location
File:app/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php
Line:188
Function:content_5d52843ea21189_83972581
File:app/Tygh/SmartyEngine/Core.php
Line:76
Function:fetch
File:app/functions/fn.control.php
Line:588
Function:fetch
File:index.php
Line:91
Function:fn_dispatch