An uncaught Exception was encountered

Type: Error

Message: Call to a member function result() on bool

Filename: C:\xampp\htdocs\application\models\News_model.php

Line Number: 59

Backtrace:

File: C:\xampp\htdocs\application\controllers\Home.php
Line: 56
Function: get_all

File: C:\xampp\htdocs\index.php
Line: 315
Function: require_once