QUERY PLAN
Hash Join (cost=1.14..2.40 rows=1 width=80)
Hash Cond: (t.id = r.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..1.24 rows=2 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.10..1.10 rows=3 width=80)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.10 rows=3 width=80)
Filter: (erp_other_payment_ticket_id = ANY ('{36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17}'::integer[]))