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