public function fetch_object($sql)
    {

        if (empty($sql)) return false;

        $res    = $this->query($sql);
        $result = @mysql_fetch_object($res);
        $this->free($res);

        return $result;
    }