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 'AND c.active = 1 ORDER BY c.position ASC' at line 5
SELECT cc.id as category_children_id,c.* FROM categories_children AS cc JOIN categories AS c ON c.id = cc.child_id WHERE cc.grandparent_id = 14 AND cc.parent_id = AND c.active = 1 ORDER BY c.position ASC