function query($query)
    {
        $err = $this->_prepare();
        if ($err !== true) {
            return $err;
        }
        return $this->db->query($query);
    }
function query($query)
    {
        $err = $this->_prepare();
        if ($err !== true) {
            return $err;
        }
        return $this->db->query($query);
    }
function query ( $ query ) { $ err = $ this -> _prepare ( ) ; if ( $ err !== true ) { return $ err ; } return $ this -> db -> query ( $ query ) ; }
Prepare query to the database

This function checks if we have already opened a connection to
the database. If that's not the case, a new connection is opened.
After that the query is passed to the database.

@access public
@param  string Query string
@return mixed  a DB_result object or DB_OK on success, a DB
or PEAR error on failure
Prepare query to the database