public function free() { if (is_object($this->queryID)) { $this->queryID->free_result(); } $this->queryID = null; }