Notice: Trying to get property 'id' of non-object in /home/newborjo/public_html/public/views/pages/news-inside/index.php on line 29

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 MySQL server version for the right syntax to use near 'ORDER BY posted_at DESC LIMIT 3' at line 1 in /home/newborjo/public_html/app/config/Db.php:37 Stack trace: #0 /home/newborjo/public_html/app/config/Db.php(37): PDOStatement->execute() #1 /home/newborjo/public_html/public/views/pages/news-inside/index.php(29): App\Config\Db::getAll('news', 'WHERE id != OR...') #2 /home/newborjo/public_html/app/core/Views.php(26): include('/home/newborjo/...') #3 /home/newborjo/public_html/app/core/Views.php(20): App\Core\Views->view() #4 /home/newborjo/public_html/app/core/Pages.php(79): App\Core\Views->__construct('news-inside') #5 /home/newborjo/public_html/app/core/Pages.php(39): App\Core\Pages->checkPage() #6 /home/newborjo/public_html/public/index.php(25): App\Core\Pages->__construct() #7 {main} thrown in /home/newborjo/public_html/app/config/Db.php on line 37