public function query($q, $cb = null)
    {
        if ($this->finished) {
            throw new ConnectionFinished;
        }
        return $this->command(Pool::COM_QUERY, $q, $cb);
    }
public function query($q, $cb = null)
    {
        if ($this->finished) {
            throw new ConnectionFinished;
        }
        return $this->command(Pool::COM_QUERY, $q, $cb);
    }
public function query ( $ q , $ cb = null ) { if ( $ this -> finished ) { throw new ConnectionFinished ; } return $ this -> command ( Pool :: COM_QUERY , $ q , $ cb ) ; }
Sends SQL-query
@param  string $q Query
@param  callable $cb Optional. Callback called when response received
@callback $cb ( Connection $conn, boolean $success )
@return boolean            Success
Sends SQL - query