An uncaught Exception was encountered

Type: Error

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

Filename: /var/www/html/application/models/HomeModel.php

Line Number: 202

Backtrace:

File: /var/www/html/application/controllers/Home.php
Line: 236
Function: average_rating

File: /var/www/html/index.php
Line: 315
Function: require_once