Warning: A non-numeric value encountered in C:\xampp\htdocs\application\controller\news.php on line 17

Fatal error: Uncaught Error: Call to a member function fetchAll() on bool in C:\xampp\htdocs\application\model\newsmodel.php:123 Stack trace: #0 C:\xampp\htdocs\application\controller\news.php(18): NewsModel->GetNewsPage('10', '-10') #1 C:\xampp\htdocs\application\core\application.php(43): News->page('login.html') #2 C:\xampp\htdocs\public\index.php(39): Application->__construct() #3 {main} thrown in C:\xampp\htdocs\application\model\newsmodel.php on line 123