An uncaught Exception was encountered

Type: Error

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

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

Line Number: 323