diff --git a/src/Models/UserRepository.php b/src/Models/UserRepository.php index e9bab80..721d742 100644 --- a/src/Models/UserRepository.php +++ b/src/Models/UserRepository.php @@ -84,7 +84,7 @@ class UserRepository extends EntityRepository implements UserProviderInterface public function getRankForUser(User $user) { $query = $this->_em->createQuery( - "SELECT COUNT(u.id) FROM ".User::class." u WHERE totalScore >= :totalScore" + "SELECT COUNT(u.id) FROM ".User::class." u WHERE u.totalScore >= :totalScore" ) ->setParameters([ 'totalScore' => $user->getTotalScore(),