QUERY PLAN
Aggregate (cost=2.40..2.41 rows=1 width=32)
-> Seq Scan on tbl_erp_cost_tickets t (cost=0.00..2.34 rows=24 width=5)
Filter: (status = 2)