QUERY PLAN
Sort (cost=37.90..37.95 rows=21 width=34)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..37.44 rows=21 width=34)
Filter: (contract_id = ANY ('{4435,4432,4427,4431,4425,4423,4421,4420,4415,4413,4412,4411,4410,4409,4407,4406,4405,4404,4403,4402}'::integer[]))