Statement size or complexity exceeds server limits

Item Value
SQLCODE -890
Constant SQLE_SYNTACTIC_LIMIT
SQLSTATE 54W01
Sybase error code 404
ODBC 2 State 37000
ODBC 3 State 54000

Probable cause 

The statement contains one or more constructs whose size make it impossible to process. Rewrite the query so that the internal limit is not exceeded. For example, if the query contains a large IN-list, consider inserting the IN-list's values into a temporary table. Then rewrite the query to join this temporary table to the other table(s) in the original statement.