public static function getRatingForScore($score) { return RatingsQuery::create()->where('Ratings.Threshold <= ?', $score)->orderByThreshold("DESC")->findOne(); }