echo last query in codeigniter code example Example: return last query codeigneter $this->db->last_query();