$StartClass = new StartClass();
$month = date('F');
$data['UserStat'][0] = $StartClass->SqlGet('SELECT * FROM `UserStat` WHERE month = "'.$month.'" ORDER BY id DESC LIMIT 1');
$data['UserStat'][1] = $StartClass->SqlGet('SELECT * FROM `UserStat` WHERE month = "'.$month.'" ORDER BY id ASC LIMIT 1');
метод в классе
public function SqlGet($query)
{
return self::$mysqli->query($query)->fetch_object();
}