public static function getThreeLastRecord(int $limit) { $sql = 'SELECT * FROM ' . static::TABLE . ' ORDER BY id DESC LIMIT ' . $limit; //var_dump($sql); $db = Db::instance(); return $db->query($sql, static::class); }