# | Posted Wednesday 31st December 1969 at 07:00pm by Andi Smith
Error: SELECT c.c_id as 'id' ,c.c_name as 'name' ,c.c_nicename as 'safename' FROM categories c INNER JOIN newscategories nc ON nc.categoryid = c.c_id and nc.newsid = ORDER BY c.c_name ASC
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 'ORDER BY c.c_name ASC' at line 7