public function getOne($tablename, array $where, array $options = []) {
        $options['limit'] = 1;
        $rows = $this->get($tablename, $where, $options);
        return array_shift($rows);
    }
public function getOne($tablename, array $where, array $options = []) {
        $options['limit'] = 1;
        $rows = $this->get($tablename, $where, $options);
        return array_shift($rows);
    }
public function getOne ( $ tablename , array $ where , array $ options = [ ] ) { $ options [ 'limit' ] = 1 ; $ rows = $ this -> get ( $ tablename , $ where , $ options ) ; return array_shift ( $ rows ) ; }
Get a single row from the database.

This is a conveinience method that calls {@link Db::get()} and shifts off the first row.

@param string $tablename The name of the table to get the data from.
@param array $where An array of where conditions.
@param array $options An array of additional options.
@return array|false Returns the row or false if there is no row.
Get a single row from the database .