original_string: public function fetch($table, $fields, $where = null, $options = [])
      {
          $options['limit'] = 1;
          if (!isset($options['offset'])) {
              $options['offset'] = 0;
          }
          $result = $this->select($table, $fields, $where, $options);
          foreach ($result as $row) {
              return $row;
          }
      }
code: public function fetch($table, $fields, $where = null, $options = [])
      {
          $options['limit'] = 1;
          if (!isset($options['offset'])) {
              $options['offset'] = 0;
          }
          $result = $this->select($table, $fields, $where, $options);
          foreach ($result as $row) {
              return $row;
          }
      }
code_tokens: public function fetch ( $ table , $ fields , $ where = null , $ options = [ ] ) { $ options [ 'limit' ] = 1 ; if ( ! isset ( $ options [ 'offset' ] ) ) { $ options [ 'offset' ] = 0 ; } $ result = $ this -> select ( $ table , $ fields , $ where , $ options ) ; foreach ( $ result as $ row ) { return $ row ; } }
docstring: Retrieve a single row from the database.
  
  @param string $table The table(s) to query.
  @param string|array $fields The field(s) (column(s)) to query.
  @param array $where An SQL where-array.
  @param array $options Array of options.
  @return array An array containing the result.
  @throws Dabble\Query\SelectException when no row was found.
  @throws Dabble\Query\SqlException on error.
docstring_tokens: Retrieve a single row from the database .