Notice: Undefined variable: type_news in /var/www/seshgo/data/www/obrii.org.ua/controller/NewsController.php on line 16

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY id DESC' at line 1 in /var/www/seshgo/data/www/obrii.org.ua/models/News.php:40 Stack trace: #0 /var/www/seshgo/data/www/obrii.org.ua/models/News.php(40): PDO->query('SELECT * FROM o...') #1 /var/www/seshgo/data/www/obrii.org.ua/controller/NewsController.php(17): News->getListNews() #2 /var/www/seshgo/data/www/obrii.org.ua/components/Router.php(45): NewsController->actionList('view', 'resources', 'documents', 'documents', 'marafon_order2....') #3 /var/www/seshgo/data/www/obrii.org.ua/index.php(29): Router->run() #4 {main} thrown in /var/www/seshgo/data/www/obrii.org.ua/models/News.php on line 40