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 '626 and c.grou' at line 5

select c.categories_id, cd.categories_name, s.make_header, c.parent_id from categories c, categories_description cd , shop s where c.categories_status = '1' 626 and c.group_permission_1=1 and c.categories_id = cd.categories_id and s.categorie = c.categories_id and cd.language_id='2' order by c.sort_order_sub

[XT SQL Error]