/**
  * Destructor
  * Free the result
  */
 public function __destruct()
 {
     if ($this->res) {
         $this->db->free($this->res);
         $this->res = null;
     }
 }