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