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
d.language_id = 2 and
c.categories_status = 1
and c.categories_i' at line 3
in:
[SELECT d.categories_name , c.categories_id
FROM categories c, categories_description d
WHERE parent_id = and
d.language_id = 2 and
c.categories_status = 1
and c.categories_id = d.categories_id]