QUERY PLAN
Sort (cost=19.73..19.79 rows=27 width=26)
Sort Key: remind_date
-> Seq Scan on tbl_purchase_contract_payment_collection_remind_dates (cost=0.00..19.09 rows=27 width=26)
Filter: (contract_id = ANY ('{3848,3479,3079,3429,3614,3741,3772,3668,3566,3720,3554,3774,3617,3621,3653,3634,3663,3586,3572,3655}'::integer[]))