Ошибка БД

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` = 'b3357884d5520549673fc699e04b7eb0' ORDER BY `or' at line 1

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