QUERY PLAN
Sort (cost=31.15..31.15 rows=1 width=30)
Sort Key: remind_date
-> Seq Scan on tbl_sales_contract_payment_collection_remind_dates (cost=0.00..31.14 rows=1 width=30)
Filter: (contract_id = 3997)