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

        return (!empty($ids)) ? $ids : false;
    }
public function ids($select, $values = array())
    {
        $ids = array();
        if ($stmt = $this->query($select, $values, 'row')) {
            while ($row = $this->fetch($stmt)) {
                $ids[] = (int) array_shift($row);
            }
            $this->close($stmt);
        }

        return (!empty($ids)) ? $ids : false;
    }
Get all of the id's from your query, or whatever the first column you requested is.

@param string|array $select A SELECT statement.
@param string|array $values The query parameters.

@return bool|array Either ``false`` if there were no rows, or an ``array()`` of every rows first value.

```php
if ($ids = $db->ids('SELECT id FROM employees WHERE title = ?', 'Intern')) {
// Then Little Bobby Tables isn't as good as we thought.
}
```