src/mako/database/query/Query.php
protected function fetchFirst(...$fetchMode)
	{
		$query = $this->limit(1)->compiler->select();

		return $this->connection->first($query['sql'], $query['params'], ...$fetchMode);
	}
protected function fetchFirst(...$fetchMode)
	{
		$query = $this->limit(1)->compiler->select();

		return $this->connection->first($query['sql'], $query['params'], ...$fetchMode);
	}
protected function fetchFirst ( ... $ fetchMode ) { $ query = $ this -> limit ( 1 ) -> compiler -> select ( ) ; return $ this -> connection -> first ( $ query [ 'sql' ] , $ query [ 'params' ] , ... $ fetchMode ) ; }
Executes a SELECT query and returns the first row of the result set.

@param  mixed ...$fetchMode Fetch mode
@return mixed
Executes a SELECT query and returns the first row of the result set .