Test the real JOIN query. It works correctly