diff --git a/src/Query/Builder.php b/src/Query/Builder.php
index <HASH>..<HASH> 100644
--- a/src/Query/Builder.php
+++ b/src/Query/Builder.php
@@ -474,7 +474,7 @@ final class Builder
                     if ($operator == null) {
                         $operator = '='; // @default=equal
                     }
-                    $query = '?? '. $operator .' '. ($params instanceof Identifier ? '??' : $escapeOperator ?: '?');
+                    $query = '?? '. $operator .' '. ($params instanceof Identifier ? '??' : ($escapeOperator ?: '?'));
                     $queryParams = [$field, $params];
                 } else {
                     // eg: ['id' => 1]
Query\Builder: fix unparenthesized ternary.