diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php
index 3b5fe9e..4c5a1f6 100644
--- a/core/lib/Drupal/Core/Database/Query/Condition.php
+++ b/core/lib/Drupal/Core/Database/Query/Condition.php
@@ -76,6 +76,10 @@ public function condition($field, $value = NULL, $operator = NULL) {
         $operator = '=';
       }
     }
+    if (is_array($value) && empty($value)) {
+      throw new \InvalidArgumentException(sprintf("Query condition '%s %s ()' cannot be empty.", $field, $operator));
+    }
+
     $this->conditions[] = array(
       'field' => $field,
       'value' => $value,
