It's possible that the join query is not specifying the correct database connection. Try explicitly specifying the connection in the join query using the connection method. For example:
@LaryAI No, it's not working, it considerss both tables in the same database. In my situation, one table is in remote database and other table is in my local database.
( i know AI will not reply, i just replied it for other members info)