Notice: Undefined offset: 0 in /home/pupil/models/articles.php on line 126 Notice: Trying to get property of non-object in /home/pupil/controllers/article.php on line 124 Notice: Trying to get property of non-object in /home/pupil/controllers/article.php on line 139 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by id desc LIMIT 0, 10000' at line 1' in /home/pupil/system/databasePDO.php:208 Stack trace: #0 /home/pupil/system/databasePDO.php(208): PDO->prepare('select * from p...') #1 /home/pupil/system/databasePDO.php(252): mvc\databases\simplePDO->query('select * from p...', Array, true) #2 /home/pupil/models/file.php(23): mvc\databases\simplePDO->get_results('select * from p...') #3 /home/pupil/controllers/article.php(139): mvc\model\File->all('ida=', 0, 10000, '') #4 /home/pupil/system/controller.php(47): mvc\web\controller\Article->get_view() #5 /home/pupil/core.php(158): mvc\web\controller\Controller->run('get_view') #6 /home/pupil/core.php(202): mvc\web\Core->__construct() #7 /home/pupil/www/index.php(20): include('/home/pupil/cor...') #8 {main} thrown in /home/pupil/system/databasePDO.php on line 208