public function getOne($query, $params = array())
    {
        $res = $this->query($query, $params)->fetch();

        return $res[0];
    }
public function getOne($query, $params = array())
    {
        $res = $this->query($query, $params)->fetch();

        return $res[0];
    }
public function getOne ( $ query , $ params = array ( ) ) { $ res = $ this -> query ( $ query , $ params ) -> fetch ( ) ; return $ res [ 0 ] ; }
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
Executes query and returns first column of first row . This is quick and speedy way to get the results of simple queries .