Index: includes/actions.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/actions.inc,v
retrieving revision 1.25
diff -u -r1.25 actions.inc
--- includes/actions.inc	8 Mar 2009 04:25:03 -0000	1.25
+++ includes/actions.inc	17 Mar 2009 13:22:03 -0000
@@ -285,12 +285,8 @@
     $orphaned = array_keys($actions_in_db);
 
     if ($delete_orphans) {
-      $results = db_select('actions')
-        ->addField('actions', 'aid')
-        ->addField('actions', 'description')
-        ->condition('callback', $orphaned, 'IN')
-        ->execute();
-      foreach ($results as $action) {
+      $actions = db_query("SELECT aid, description FROM {actions} WHERE callback IN (:orphaned)", array(':orphaned' => $orphaned))->fetchAll();
+      foreach ($actions as $action) {
         actions_delete($action->aid);
         watchdog('actions', "Removed orphaned action '%action' from database.", array('%action' => filter_xss_admin($action->description)));
       }
