src/Database.php
public function row($sql, array $params = [], $rowNumber = 0)
    {
        $result = $this->run($sql, $params, false, PDO::FETCH_ASSOC);

        return $result[$rowNumber] ?? null;
    }
public function row($sql, array $params = [], $rowNumber = 0)
    {
        $result = $this->run($sql, $params, false, PDO::FETCH_ASSOC);

        return $result[$rowNumber] ?? null;
    }
Run a query using a prepared statement and return the first row.

@param string|Query $sql
@param array $params
@param int $rowNumber
@return array|null