QUERY PLAN
Sort (cost=55.57..55.58 rows=1 width=34)
Sort Key: id
-> Seq Scan on tbl_purchase_contract_invoices (cost=0.00..55.56 rows=1 width=34)
Filter: (contract_id = 4042)