Ver original$this->db->update('tabla', $data); $this->db->where('id'); $this->db->select('id'); $this->db->select('md5(md5(id))token,id'); $query = $this->db->get('tabla'); $this->db->where('token',$_POST['id']);