An Error Was Encountered
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 'ORDER BY categories.sort_order ASC, category_details.category_name ASC' at line 6
SELECT * FROM categories JOIN category_details ON category_details.categories_id = categories.categories_id WHERE category_details.locales_id= '1' AND categories.parent_id= ORDER BY categories.sort_order ASC, category_details.category_name ASC