fix query building in TextRatingRepository::getByTextAndUser()