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 language_id = 5
order by c.sort_order, cd.categories_name' at line 4
select cd.categories_id, cd.categories_name
from categories c
inner join categories_description cd on (cd.categories_id = c.categories_id)
where c.parent_id = and language_id = 5
order by c.sort_order, cd.categories_name