Syntax error, unexpected token AND, near to ' INEWS_ID > 6189 ORDER BY INEWS_ID ASC LIMIT :APL0:', when parsing: SELECT [SupNewsDetails].* FROM [SupNewsDetails] WHERE INEWS_STATUS=1 AND INEWS_ID<>6189 AND ICATEGORY_ID= AND INEWS_ID > 6189 ORDER BY INEWS_ID ASC LIMIT :APL0: (160)