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 id_cat NOT IN (-1000,26,42,137,47,122,120) ORDER BY pos' at line 4
SELECT * FROM orlan_cats WHERE parent_id = AND id_cat NOT IN (-1000,26,42,137,47,122,120) ORDER BY pos