QUERY PLAN
Aggregate (cost=2.46..2.47 rows=1 width=32)
-> Seq Scan on tbl_erp_cost_tickets (cost=0.00..2.34 rows=24 width=9)
Filter: (status = 2)