Fix `ip_pool` query in `min_cooldown_period`