QUERY PLAN
Hash Join (cost=1.13..2.38 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.09..1.09 rows=3 width=80)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.09 rows=3 width=80)
Filter: (erp_other_payment_ticket_id = ANY ('{16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1}'::integer[]))