Invalid expression in WHERE clause of Transact-SQL outer join

Item Value
SQLCODE -680
Constant SQLE_INVALID_TSQL_OJ_EXPRESSION
SQLSTATE 52W23
Sybase error code 301
ODBC 2 State 37000
ODBC 3 State 42000

Probable cause 

An expression in the WHERE clause of a query which uses Transact-SQL syntax contains a comparison of a column from the null-supplying table with a subquery or an expression which references a column from another table.