original_string: public function getOne($query, $params = array())
      {
          $res = $this->query($query, $params)->fetch();
  
          return $res[0];
      }
code: public function getOne($query, $params = array())
      {
          $res = $this->query($query, $params)->fetch();
  
          return $res[0];
      }
code_tokens: public function getOne ( $ query , $ params = array ( ) ) { $ res = $ this -> query ( $ query , $ params ) -> fetch ( ) ; return $ res [ 0 ] ; }
docstring: Executes query and returns first column of first row. This is quick and
  speedy way to get the results of simple queries.
  
  Consider using DSQL:
  echo $this->app->db->dsql()->expr('select now()')->getOne();
  
  @param string $query  SQL Query
  @param arary  $params PDO-params
  
  @return string first column of first row
docstring_tokens: Executes query and returns first column of first row . This is quick and speedy way to get the results of simple queries .