Ошибка БД

Error Number: 1064

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 'route 'docs' ORDER BY `ordering_count` asc' at line 4

SELECT `id` FROM `default_firesale_categories` WHERE `status` = '1' AND `current_id`=null route 'docs' ORDER BY `ordering_count` asc

Database Error

Ошибка БД

Error Number: 1064

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 'route 'docs' AND `session_id` = '1ee6f08e58058fd79103c7e148a40b14' ORDER BY `or' at line 1

UPDATE `default_ci_sessions` SET `last_activity` = 1711653349, `user_data` = 'a:1:{s:8:\"category\";N;}' WHERE `status` = '1' AND `current_id`=null route 'docs' AND `session_id` = '1ee6f08e58058fd79103c7e148a40b14' ORDER BY `ordering_count` asc