get last query in codeigniter 4 site:stackoverflow.com code example Example: print last executed db query codeigniter $this->db->last_query();