Index: /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.install
===================================================================
--- /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.install  (revision 141)
+++ /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.install  (working copy)
@@ -134,7 +134,7 @@
   }
   $query .= "
     WHERE xn.nid IS NULL
-    GROUP BY n.nid, ua.pid, n.changed, s.last_comment_timestamp
+    GROUP BY n.nid, n.changed, s.last_comment_timestamp
   ";
   return $query;
 }
Index: /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
===================================================================
--- /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module (revision 141)
+++ /Users/andrew/Documents/workspace/pinchin/sites/default/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module (working copy)
@@ -383,7 +383,7 @@
     }
     $query .= "
       WHERE xn.nid IS NULL
-      GROUP BY n.nid, ua.pid, n.changed, s.last_comment_timestamp
+      GROUP BY n.nid, n.changed, s.last_comment_timestamp
     ";
     db_query($query);
     xmlsitemap_update_sitemap();
