public function freeResults()
    {
        if (is_a($this->getResultId(), "mysqli_result")) {
            mysqli_free_result($this->getResultId());
            $this->setResultId(FALSE);
        }
    }