diff --git a/inc/core/lib/QueryBuilder.php b/inc/core/lib/QueryBuilder.php index d5e5d80..990b890 100644 --- a/inc/core/lib/QueryBuilder.php +++ b/inc/core/lib/QueryBuilder.php @@ -285,12 +285,13 @@ class QueryBuilder $value = '(' . implode(',', array_fill(0, count($value), '?')) . ')'; } else { array_push($this->condition_binds, $value); + $value = "?"; } if (empty($this->conditions) || strpos(end($this->conditions), '(') !== false) { - array_push($this->conditions, "$column $operator ?"); + array_push($this->conditions, "$column $operator $value"); } else { - array_push($this->conditions, "$ao $column $operator ?"); + array_push($this->conditions, "$ao $column $operator $value"); } return $this;