1064 - 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 'LIMIT 0, 50' at line 15
select
c.categories_id,
cd.categories_name,
c.categories_image,
c.parent_id
from categories c, categories_description cd
where
c.parent_id = '8385' and
c.categories_id = cd.categories_id and
cd.language_id = '5' and
c.status=1
GROUP BY c.categories_id ORDER BY cd.categories_name ASC, LIMIT 0, 50