Error SQL:


QUERY:
SELECT `id`, `parent` FROM `ctim_ru_cat` WHERE `id` =
MYSQL Error:
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 '' at line 1

stack trace:
#0  sql->query(SELECT `id`, `parent` FROM `ctim_ru_cat` WHERE `id` = ) called at [/home/admin/web/1cmagazine.ru/public_html/include/classes/db.php:68]
#1  sql->fetch_one(SELECT `id`, `parent` FROM `ctim_ru_cat` WHERE `id` = ) called at [/home/admin/web/1cmagazine.ru/public_html/include/functions.php:2607]
#2  getCategoryParent() called at [/home/admin/web/1cmagazine.ru/public_html/include/functions.php:2619]
#3  getCategoriesByParent() called at [/home/admin/web/1cmagazine.ru/public_html/modules/cat/bcms.php:24]
#4  require_once(/home/admin/web/1cmagazine.ru/public_html/modules/cat/bcms.php) called at [/home/admin/web/1cmagazine.ru/public_html/bcms.php:210]