public static function findAll() { $sql = 'SELECT * FROM ' . static::getTable() . ' ORDER BY articleDate DESC'; $db = new Database(); $result = $db->selectAll(static::class, $sql); if ($result == false) { throw new MyException('E404'); } else { return $result; } }