diff --git includes/DataHandler.inc includes/DataHandler.inc
index bc80195..91be7ec 100644
--- includes/DataHandler.inc
+++ includes/DataHandler.inc
@@ -54,8 +54,17 @@ class DataHandler {
       if (!isset($fields[$key]['type'])) {
         return FALSE;
       }
-      $where[] = db_escape_string($key) ." = ". db_type_placeholder($fields[$key]['type']);
-      $values[] = $value;
+      if (is_array($value)) {
+        $where[] = db_escape_string($key) . ' IN (' . db_placeholders($value, $fields[$key]['type']) . ')';
+        // array_merge() will overwrite values in $values which have the same
+        // non-numeric key as a value in $value. Theoretically, nothing here
+        // should have a non-numeric key, but just in case…
+        $values = array_merge($values, array_values($value));
+      }
+      else {
+        $where[] = db_escape_string($key) ." = ". db_type_placeholder($fields[$key]['type']);
+        $values[] = $value;
+      }
     }
 
     if (!empty($where)) {
