Plan cannot be generated for this type of statement

Error constant SQLE_STMT_NOT_ALLOWED_IN_PLAN
ODBC 2 state ERROR
ODBC 3 state ERROR
Severity 15
SQLCODE -894
SQLSTATE 0AW14
Sybase error code 13589
 Probable cause