diff --git a/Database/Traits/QueryTrait.php b/Database/Traits/QueryTrait.php index a39ad630..39a37b8f 100644 --- a/Database/Traits/QueryTrait.php +++ b/Database/Traits/QueryTrait.php @@ -83,7 +83,7 @@ trait QueryTrait */ public function locate(string $column, string $value): static { - $this->where[] = 'LOCATE(' . $column . ',\'' . addslashes($value) . '\')'; + $this->where[] = 'LOCATE(' . $column . ',\'' . addslashes($value) . '\') > 0'; return $this; }