SELECT category_id FROM categories WHERE parent_id IN(8") AND category_active=1 ORDER BY category_name
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 '") AND category_active=1 ORDER BY category_name' at line 1