diff --git a/modules/aggregator/aggregator.processor.inc b/modules/aggregator/aggregator.processor.inc
index 91b440c7c7e51857e255249224c911525c5fb64c..6eb2c662fab594efb7b567fec5e1046231286b18 100644
--- a/modules/aggregator/aggregator.processor.inc
+++ b/modules/aggregator/aggregator.processor.inc
@@ -162,8 +162,8 @@ function aggregator_save_item($edit) {
     $result = db_query('SELECT cid FROM {aggregator_category_feed} WHERE fid = :fid', array(':fid' => $edit['fid']));
     foreach ($result as $category) {
       db_merge('aggregator_category_item')
-        ->key(array('iid' => $edit['iid']))
-        ->fields(array(
+        ->key(array(
+          'iid' => $edit['iid'],
           'cid' => $category->cid,
         ))
         ->execute();