Invalid statement

Error constant SQLE_INVALID_STATEMENT
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –130
SQLSTATE 07W02
Sybase error code 13628
Probable cause

The statement identifier generated by a PREPARE passed to the database for a further operation is invalid.