QUERY PLAN
Hash Join (cost=97.62..196.46 rows=23 width=62)
Hash Cond: (r.erp_payment_ticket_id = t.id)
-> Seq Scan on tbl_erp_payment_ticket_settles r (cost=0.00..98.78 rows=23 width=62)
Filter: (erp_other_payment_ticket_id = ANY ('{46,38,34,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10}'::integer[]))
-> Hash (cost=68.42..68.42 rows=2336 width=4)
-> Seq Scan on tbl_erp_payment_tickets t (cost=0.00..68.42 rows=2336 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))