User.username doesn't exist - usernames are in Profile model. Now properly searches Profile.username and joins results.