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 `sort_id` ASC' at line 1
SELECT `id`, `pid`, `show_type`, `topic_en` AS `topic`, `sort_id`, `status` FROM category WHERE `status`= 1 AND `id`= ORDER BY `sort_id` ASC