QUERY PLAN
Hash Join (cost=1.50..4.95 rows=8 width=58)
Hash Cond: (t.id = r.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..3.00 rows=74 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))
-> Hash (cost=1.39..1.39 rows=9 width=58)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.39 rows=9 width=58)
Filter: (erp_other_payment_ticket_id = ANY ('{60,59,58,57,56,55,54,53,52,51,50,49,48,47,44,46,43,42,41,40}'::integer[]))