Fixed User::getUser*() and User::findUsers() type checking to use SQL.