Index: modules/aggregator/aggregator.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.module,v
retrieving revision 1.383
diff -u -r1.383 aggregator.module
--- modules/aggregator/aggregator.module	3 Aug 2008 05:46:55 -0000	1.383
+++ modules/aggregator/aggregator.module	3 Aug 2008 10:48:21 -0000
@@ -382,7 +382,7 @@
   elseif (!empty($edit['title'])) {
     // A single unique id for bundles and feeds, to use in blocks.
     db_query("INSERT INTO {aggregator_category} (title, description, block) VALUES ('%s', '%s', 5)", $edit['title'], $edit['description']);
-    $link_path .= db_last_insert_id('aggregator', 'cid');
+    $link_path .= db_last_insert_id('aggregator_category', 'cid');
     $op = 'insert';
   }
   if (isset($op)) {
