ErrorException [ Fatal Error ]: Call to a member function result_array() on boolean

FCPATH/application/controllers/dashboardv2.php [ 8312 ]

8307         $cache_check = $this->memcached_check($cache_key);
8308 
8309         // echo "<pre>";print_r($cache_check);
8310         if ($cache_check['status'] == "FAILED") {
8311 
8312             $res3 = $this->db->query($sql4)->result_array();
8313 	        array_push($returnable, $res3);
8314 
8315 	        $sql5 = $sql . " AND lab_commodities.id = 5 Group By counties.county ORDER BY lab_commodity_details.created_at ASC";
8316 	        $res4 = $this->db->query($sql5)->result_array();
8317 	        array_push($returnable, $res4);
  1. {PHP internal call} » MY_Exceptions::shutdown_handler()

Environment