Index: modules/aggregator/aggregator.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.module,v
retrieving revision 1.374.2.4
diff -u -r1.374.2.4 aggregator.module
--- modules/aggregator/aggregator.module	14 Jan 2009 21:36:16 -0000	1.374.2.4
+++ modules/aggregator/aggregator.module	22 Mar 2009 23:34:55 -0000
@@ -390,7 +390,7 @@
   else if (!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)) {
