QUERY PLAN
Aggregate (cost=476.63..476.64 rows=1 width=32)
-> Seq Scan on tbl_erp_cash_cost_tickets (cost=0.00..476.62 rows=1 width=5)
Filter: ((purchase_contract_id = 4466) AND (status = ANY ('{1,2,5}'::integer[])))