original_string: public function fetch($query, $parameters = array())
      {
          try {
              $sth = $this->query($query, $parameters);
              if ($sth === false) {
                  return false;
              }
              return $sth->fetch(PDO::FETCH_ASSOC);
          } catch (PDOException $e) {
              throw new DbException("Error query: " . $e->getMessage());
          }
      }
code: public function fetch($query, $parameters = array())
      {
          try {
              $sth = $this->query($query, $parameters);
              if ($sth === false) {
                  return false;
              }
              return $sth->fetch(PDO::FETCH_ASSOC);
          } catch (PDOException $e) {
              throw new DbException("Error query: " . $e->getMessage());
          }
      }
code_tokens: public function fetch ( $ query , $ parameters = array ( ) ) { try { $ sth = $ this -> query ( $ query , $ parameters ) ; if ( $ sth === false ) { return false ; } return $ sth -> fetch ( PDO :: FETCH_ASSOC ) ; } catch ( PDOException $ e ) { throw new DbException ( "Error query: " . $ e -> getMessage ( ) ) ; } }
docstring: Returns the first row of a query result, using optional bound parameters.
  
  @param string $query Query
  @param array $parameters Parameters to bind
  @return bool|mixed
  @see query()
  @throws Exception|DbException if an exception occurred
docstring_tokens: Returns the first row of a query result using optional bound parameters .