@@ -768,7 +768,7 @@ class Base
$or = join(" ". $opt . " ", $or);
}
if(!empty($this->where)) {
- $this->where .= " OR (". $or . ")";
+ $this->where .= " ". $opt ." (". $or . ")";
return $this;