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