QUERY PLAN
Aggregate (cost=1.39..1.40 rows=1 width=32)
-> Seq Scan on tbl_erp_other_collect_tickets (cost=0.00..1.29 rows=19 width=8)
Filter: (status = 2)