Accessories for other smartphones

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 'where status_categ = 1 order by sort_order, cd.categories_name' at line 1

select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from categories c, categories_description cd where c.parent_id = '157' and c.categories_id = cd.categories_id and cd.language_id = '2' where status_categ = 1 order by sort_order, cd.categories_name