From 62eea6c4e178a5acc4220e399bad6be3ab2cd9dc Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 2 Aug 2023 19:33:15 -0700 Subject: [PATCH] places: fix duplicate where Signed-off-by: Varun Patil --- lib/ClustersBackend/PlacesBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ClustersBackend/PlacesBackend.php b/lib/ClustersBackend/PlacesBackend.php index b204828c..51ec11ad 100644 --- a/lib/ClustersBackend/PlacesBackend.php +++ b/lib/ClustersBackend/PlacesBackend.php @@ -103,7 +103,7 @@ class PlacesBackend extends Backend // Else if we are looking for countries elseif (-1 === $inside) { - $query->where($query->expr()->eq('e.admin_level', $query->expr()->literal(2, \PDO::PARAM_INT))); + $query->andWhere($query->expr()->eq('e.admin_level', $query->expr()->literal(2, \PDO::PARAM_INT))); } // AND these items are marked (only if not inside)