QUERY PLAN
Limit (cost=56.48..56.49 rows=1 width=154)
-> Group (cost=56.48..56.49 rows=1 width=154)
Group Key: sci.id
-> Sort (cost=56.48..56.49 rows=1 width=154)
Sort Key: sci.id
-> Seq Scan on tbl_sales_contract_invoices sci (cost=0.00..56.48 rows=1 width=154)
Filter: ((cover_invoice_id IS NULL) AND (contract_id = 3844))