diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index 3b5fe9e..739e217 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -76,6 +76,12 @@ public function condition($field, $value = NULL, $operator = NULL) {
         $operator = '=';
       }
     }
+    // DX: Automatically ignore [NOT] IN conditions if the passed $value array
+    // is empty.
+    if (is_array($value) && empty($value)) {
+      return $this;
+    }
+
     $this->conditions[] = array(
       'field' => $field,
       'value' => $value,
