$data = $bbdb->query('stuff');
$what_you_want = $data->column_name;
If I recall correctly.
$data should be the second item (0-based arrays), which is an object. Access its property by the name of the column the ID is stored in. bbdb is based on ezSQL. Look for some documentation. It’s actually pretty well documented for wpdb; did you not find anything there?