QUERY PLAN
Sort (cost=37.85..37.91 rows=24 width=42)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.30 rows=24 width=42)
Filter: (contract_id = ANY ('{4346,4371,4345,4383,4419,4434,4418,4429,4428,4437,4475,4442,4466,4436,4469,4472,4474,4477,4482,4485}'::integer[]))