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 c.categories_id = cd.categories_id
ORDER BY c.sort
SELECT
c.categories_id
FROM
categories c,
categories_description cd
WHERE
c.categories_id IN ()
AND c.categories_id = cd.categories_id
ORDER BY c.sort_order, cd.categories_name