--- plugins/FeedsFeedNodeProcessor.inc	2009-11-18 16:53:48.000000000 +0000
+++ /var/www/localhost/feeds.20091124/plugins/FeedsFeedNodeProcessor.inc	2009-11-23 15:28:09.000000000 +0000
@@ -207,7 +207,7 @@ class FeedsFeedNodeProcessor extends Fee
     // We only support one unique target: source
     foreach ($this->uniqueTargets($source_item) as $target => $value) {
       if ($target == 'source') {
-        return db_result(db_query('SELECT fs.feed_nid FROM {node} n JOIN {feeds_source} fs ON n.nid = fs.feed_nid WHERE fs.id = "%s" AND fs.source = "%s"', $this->feedNodeImporter()->id, $value));
+        return db_result(db_query('SELECT fs.feed_nid FROM {node} n JOIN {feeds_source} fs ON n.nid = fs.feed_nid WHERE fs.id = \'%s\' AND fs.source = \'%s\'', $this->feedNodeImporter()->id, $value));
       }
     }
     return 0;
@@ -224,4 +224,4 @@ class FeedsFeedNodeProcessor extends Fee
       throw new Exception(t('Content type to be created is not a valid Feed content type.'));
     }
   }
-}
\ No newline at end of file
+}
