Your query is correct, but user names were not required. Omitting that part of the query would have simplied things and made your query faster. 

The line of code you don't write is the line of code you don't have to debug.