lastquery php code example Example: print last executed db query codeigniter $this->db->last_query();