The optimizer was unable to construct a valid access plan

Item Value
SQLCODE -727
Constant SQLE_CANNOT_OPTIMIZE_QUERY
SQLSTATE WI010
Sybase error code 13730
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

The database server was unable to construct a valid access plan for the given request. This is an Adaptive Server Anywhere internal error. If it can be reproduced, it should be reported to iAnywhere Solutions. You may be able to work around this problem by modifying the query statement.