Postgres Syntax Error with Empty `IN` Clause in SQL Query

I'm getting the following a bunch for my cluster live cluster:
2026-01-01 10:43:13    INFO    
AND shard_id IN ()
2026-01-01 10:43:13    INFO    
WHERE processed = FALSE
2026-01-01 10:43:13    INFO    
SET last_read = NULL
2026-01-01 10:43:13    INFO    
UPDATE "cluster_messages"
2026-01-01 10:43:13    INFO    
[POSTGRES] 2026-01-01 15:43:13.149 UTC [66152] STATEMENT:
2026-01-01 10:43:13    ERROR    
[POSTGRES] 2026-01-01 15:43:13.149 UTC [66152] ERROR: syntax error at or near ")" at character 122
Was this page helpful?