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

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

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

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