src/Component.php
public function row($select, $values = array(), $fetch = 'row')
    {
        if ($stmt = $this->query($select, $values, $fetch)) {
            $row = $this->fetch($stmt);
            $this->close($stmt);
        }

        return (isset($row) && !empty($row)) ? $row : false;
    }
public function row($select, $values = array(), $fetch = 'row')
    {
        if ($stmt = $this->query($select, $values, $fetch)) {
            $row = $this->fetch($stmt);
            $this->close($stmt);
        }

        return (isset($row) && !empty($row)) ? $row : false;
    }
Get only the first row from your query.

@param string|array $select A SELECT statement.
@param string|array $values The query parameters.
@param string       $fetch  How you would like your row.

@return bool|array Either ``false`` if there was no row, or an ``array()`` of the first one fetched.

```php
if ($janitor = $db->row('SELECT id, name FROM employees WHERE title = ?', 'Janitor', 'assoc')) {
// array('id'=>103, 'name'=>'Jason Bourne')
}
```