I have been having an issue with a database query returning a boolean instead of result_array() or result_object. This seems very convoluted.
Below is the normal core query that is supposed to return a result:
$query = $this->db->query('MY_QUERY');
return $query->result_array();
To be more precise, the core code is generating a fatal_error when I use form validation from the core library to validate the is_unique $this->input
Fatal error: Call to a member function num_rows() on boolean in
C:\xampp\htdocs\MY_PROJECT\system\libraries\Form_validation.php on line 1122