diff -u b/src/Plugin/views/argument/IndexNameDepth.php b/src/Plugin/views/argument/IndexNameDepth.php --- b/src/Plugin/views/argument/IndexNameDepth.php +++ b/src/Plugin/views/argument/IndexNameDepth.php @@ -182,7 +182,9 @@ $subquery->condition($where); $ids = array_keys($subquery->execute()->fetchAllKeyed()); - $this->query->addWhere(0, "$this->tableAlias.$this->realField", $ids, 'IN'); + if (!empty($ids)) { + $this->query->addWhere(0, "$this->tableAlias.$this->realField", $ids, 'IN'); + } } /**