diff --git a/src/QUI/Memberships/Handler.php b/src/QUI/Memberships/Handler.php
index 24fa83af8c37b9fbfbee1980c10c65375f620ac8..0b5a1a7216bd6bd4ca23e66596e45c9bd7a1b385 100644
--- a/src/QUI/Memberships/Handler.php
+++ b/src/QUI/Memberships/Handler.php
@@ -268,10 +268,11 @@ public function getMembershipIdsByGroupIds($groupIds)
         $binds = [];
 
         foreach ($groupIds as $groupId) {
-            $whereOr[] = '`groupIds` LIKE :' . $groupId;
-            $binds[$groupId] = [
+            $bindParam = md5($groupId);
+            $whereOr[] = '`groupIds` LIKE :' . $bindParam;
+            $binds[$bindParam] = [
                 'value' => '%,' . $groupId . ',%',
-                'type' => \PDO::PARAM_INT
+                'type' => \PDO::PARAM_STR
             ];
         }