QUERY PLAN
Aggregate (cost=3.00..3.01 rows=1 width=32)
-> Seq Scan on tbl_erp_cost_tickets (cost=0.00..2.74 rows=52 width=9)
Filter: (status = 2)