diff --git a/feeds.module b/feeds.module index 1b1cb7a70aed29da721a1b623f9edb6c868b4387..d80dd7ef6c07af83bd044d84a427c65d3a2c7835 100644 --- a/feeds.module +++ b/feeds.module @@ -30,10 +30,7 @@ function feeds_cron() { if ($importers = feeds_reschedule()) { foreach ($importers as $id) { feeds_importer($id)->schedule(); - $rows = db_select('feeds_source') - ->fields('feed_nid') - ->condition('id', $id) - ->execute(); + $rows = db_query("SELECT feed_nid FROM {feeds_source} WHERE id = :id", array(':id' => $id)); foreach ($rows as $row) { feeds_source($id, $row->feed_nid)->schedule(); }