Get email via query

Had to add this because emails don't always contain uids.