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 cd.categories_id=c.parent_id' at line 3
SELECT cd.categories_name, c.parent_id
FROM categories AS c, categories_description AS cd
WHERE c.categories_id= AND cd.categories_id=c.parent_id
[TEP STOP]