QUERY PLAN
Aggregate (cost=2.60..2.61 rows=1 width=32)
-> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..2.59 rows=4 width=5)
Filter: ((bank_settle_at IS NULL) AND (status = 2))