JOIN query is added