src/Connection.php
public function selectFirst(string $query, array $values = [])
    {
        try {
            $row = $this->executeStatement($query, $values)->fetch();
            return $row === false ? null : $row;
        } catch (\Throwable $exception) {
            throw static::wrapException($exception, $query, $values);
        }
    }
public function selectFirst(string $query, array $values = [])
    {
        try {
            $row = $this->executeStatement($query, $values)->fetch();
            return $row === false ? null : $row;
        } catch (\Throwable $exception) {
            throw static::wrapException($exception, $query, $values);
        }
    }
public function selectFirst ( string $ query , array $ values = [ ] ) { try { $ row = $ this -> executeStatement ( $ query , $ values ) -> fetch ( ) ; return $ row === false ? null : $ row ; } catch ( \ Throwable $ exception ) { throw static :: wrapException ( $ exception , $ query , $ values ) ; } }
Performs a select query and returns the first query result.

@param string $query Full SQL query
@param array $values Values to bind. The indexes are the names or numbers of the values.
@return array|null An array indexed by columns. Null if nothing is found.
@throws InvalidArgumentException
@throws PDOException
Performs a select query and returns the first query result .