QUERY PLAN
Aggregate (cost=1.13..1.14 rows=1 width=32)
-> Seq Scan on tbl_erp_cost_tickets t (cost=0.00..1.12 rows=1 width=32)
Filter: (status = 2)