the DB_Mysql class has the following code:
if ($this->Debug)
printf("Debug: query = %s<br>\n", $Query_String);
$this->Query_ID = @mysql_query($Query_String,$this->Link_ID);
$this->Row = 0;
$this->Errno = mysql_errno();
$this->Error = mysql_error();
if (!$this->Query_ID) {
$this->halt("Invalid SQL: ".$Query_String);
}
so a call to $PeopleList->ds->Error should get the mysql query string.
also, the derived connection object usually has an clsError object named Errors that you can get also... in the help check out the connection object reference