diff --git a/src/sentry/rules/conditions/event_frequency.py b/src/sentry/rules/conditions/event_frequency.py index 5b628440442dfb..600be308304a36 100644 --- a/src/sentry/rules/conditions/event_frequency.py +++ b/src/sentry/rules/conditions/event_frequency.py @@ -425,7 +425,7 @@ def batch_query_hook( if groups: group = groups[0] if len(group) == 3: - organization_id = group[3] + organization_id = group[2] if error_issue_ids: error_sums = self.get_chunked_result(