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

FCPATH/application/core/MY_Controller.php [ 1021 ]

1016             // $count      = 0;
1017 
1018             // echo "<pre>";print_r($c_data);exit;
1019             // echo "<pre>";print_r($count);exit;
1020             $c_q        = "SELECT * FROM county_drawing_rights WHERE county_id = $county_id";
1021             $c_q_res    = $this->db->query($c_q)->result_array();
1022 
1023             if ($count > 0) {
1024                 // echo "995: Please contact administrator.";exit;
1025                 foreach ($c_q_res as $key => $value) {
1026                     // echo "<pre>";print_r($value);exit;
  1. {PHP internal call} » MY_Exceptions::shutdown_handler()

Environment