diff --git a/Database/Traits/QueryTrait.php b/Database/Traits/QueryTrait.php index 51c88979..cba97559 100644 --- a/Database/Traits/QueryTrait.php +++ b/Database/Traits/QueryTrait.php @@ -479,7 +479,7 @@ trait QueryTrait $oldWhere = '(' . implode(') AND (', $this->where) . ')'; - $this->where = [$oldWhere . ' OR ' . $conditionArray]; + $this->where = ['(' . $oldWhere . ') OR ' . $conditionArray]; return $this; }