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,48,44,89,47,49,54,85,60,66,67,100) ORDER BY ' at line 4
SELECT * FROM orlan_cats WHERE parent_id = AND id_cat NOT IN (-1000,48,44,89,47,49,54,85,60,66,67,100) ORDER BY pos