make readable query result print_r codeigniter code example Example: codeigniter print last sql query print_r($this->db->last_query());