QUERY PLAN
Result (cost=294.76..294.77 rows=1 width=1)
InitPlan 1 (returns $0)
-> Seq Scan on tbl_erp_cash_cost_tickets (cost=0.00..294.76 rows=1 width=0)
Filter: ((purchase_contract_id = 4238) AND (status = 1))