Illegal reference to correlation name '%1'

Item Value
SQLCODE -824
Constant SQLE_INVALID_CORRELATION_NAME_REFERENCE
SQLSTATE 42U01
Sybase error code 13830
ODBC 2 State S0002
ODBC 3 State 42S02
Parameter 1 The correlation name which is incorrectly referenced.

Probable cause 

Your query contains a reference in a table expression to a correlation name that is not contained in that table expression.