diff --git a/spambot.module b/spambot.module
index 52bff13..4f50d9a 100644
--- a/spambot.module
+++ b/spambot.module
@@ -255,7 +255,7 @@ function spambot_account_ip_addresses($account) {
       $items = \Drupal::database()->select('comment_field_data')
         ->distinct()
         ->fields('comment_field_data', ['hostname'])
-        ->condition('cid', $comment_cid, '=')
+        ->condition('cid', $comment_cid, 'IN')
         ->execute()
         ->fetchCol();
     }
