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,77,79,80,63,64,48,45,89,90,49,54,85,60,69,82,81,68,70,7' at line 4
SELECT * FROM orlan_cats WHERE parent_id = AND id_cat NOT IN (-1000,77,79,80,63,64,48,45,89,90,49,54,85,60,69,82,81,68,70,71,72,73,74,75,100) ORDER BY pos