SQL Error: SELECT * FROM `skhsch_page` WHERE `lang` = '2' AND `hidden` = '0' AND (`show_date` = '0000-00-00 00:00:00' OR `show_date` <= '2024-03-29 16:44:57') AND (`hide_date` = '0000-00-00 00:00:00' OR `hide_date` >= '2024-03-29 16:44:57') AND (`parent_id` NOT IN (SELECT `page_id` FROM `skhsch_page` WHERE (`show_date` != '0000-00-00 00:00:00' AND `show_date` > '2024-03-29 16:44:57') OR (`hide_date` != '0000-00-00 00:00:00' AND `hide_date` < '2024-03-29 16:44:57') OR `hidden` = '1')) AND `route` = '2' AND `parent_id` = ORDER BY `seq` DESC, `parent_id` ASC, `title` ASC, `page_id` ASC

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 'ORDER BY `seq` DESC, `parent_id` ASC, `title` A...' at line 1