Cause
tables in a join with the for update clause must reside at the same DB.
Action
Joined tables in a SELECT statement with the FOR UPDATE clause must reside at the same database. Simplify the SELECT... FOR UPDATE statement so that it joins only tables in the same database.