public function GetDelete($TableName, $Wheres = array()) {
      $Conditions = '';
      $Joins = '';
      $DeleteFrom = '';
      
      if (count($this->_Joins) > 0) {
         $Joins .= "\n";
         $Joins .= implode("\n", $this->_Joins);
         
         
         $DeleteFroms = array();
         foreach ($this->_Froms as $From) {
            $Parts = preg_split('`\s`', trim($From));
            if (count($Parts) > 1)
               $DeleteFroms[] = $Parts[1].'.*';
            else
               $DeleteFroms[] = $Parts[0].'.*';
         }
         $DeleteFrom = implode(', ', $DeleteFroms);
      }

      if (count($Wheres) > 0) {
         $Conditions = "\nwhere ";
         $Conditions .= implode("\n", $Wheres);

         // Close any where groups that were left open.
         $this->_EndQuery();

      }

      return "delete $DeleteFrom from ".$TableName.$Joins.$Conditions;
   }