« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - 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 AKTIV='1' ORDER BY TOPTARIF DESC, MONATLICH_INTERNETZUGANG ASC' at line 1 »
      SQL: SELECT @kpo:=CONCAT('{lo',ID,'::',REPLACE(REPLACE(TARIFNAME,' ','-'), '&', 'und'),'}') AS LO, CONCAT(@kpo,TARIFNAME,'{lc}') AS TARIF, CONCAT(@kpo,DOWNSTREAM,' kbit/s','{lc}') AS DOWNSTREAM2, CONCAT(@kpo,MONATLICH_INTERNETZUGANG,' €','{lc}') AS MONATLICH_INTERNETZUGANG2, CONCAT(@kpo,'Details','{lc}') AS DETAILS FROM kp_tarif WHERE ANBIETER_ID='2' AND ID NOT IN () AND AKTIV='1' ORDER BY TOPTARIF DESC, MONATLICH_INTERNETZUGANG ASC
      [Copy SQL to ClipBoard]
 
Parser timing
  MySQL: 0.0084 s(33 Requests)
  PHP: 0.0820 s 
  Total: 0.0904 s