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.parent_id IN (292) AND cscart_categories.id_path LIKE '275/292/%' 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/functions/fn.catalog.php
Line:1244
Function:fn_get_categories
File:app/controllers/frontend/categories.php
Line:75
Function:fn_get_subcategories
File:app/functions/fn.control.php
Line:672
Function:include
File:app/functions/fn.control.php
Line:430
Function:fn_run_controller
File:index.php
Line:91
Function:fn_dispatch