remove redundant and erroneous query for userprofile (bug 915694)