Aaaahhh. Thanks! Yes, that is just the result set

I added the "getrow" to obtain the single row of data. Below is the working code.
<?php
function addEvent2( &$fields )
{
// Bring needed resources into scope
global $modx, $table_prefix;
// Get the user id - this is used to find the webgroup
$userID = $modx->getLoginUserID();
$table = $modx->getFullTableName("web_groups");
$wg = $modx->db->select("webgroup", $table, "webuser = $userID");
// Get the single row from the SQL result set
$row = $modx->db->getRow($wg);
// Get single values for the table
$event_name = $fields[event_name]; // Add Event Name
$event_description = $fields[event_description]; // Add Event Name
$web_group_id = $row[webgroup];
// Format sql statement
$sql = "INSERT INTO ".$modx->getFullTableName("custom_event")." (event_name, event_description, web_group_id)
VALUES(’".$event_name."’, ’".$event_description."’, ’".$web_group_id."’);";
$dbquery = $modx->db->query($sql);
return true;
}
// Return empty string
return ’’;
?>