QUERY PLAN
Aggregate (cost=1.16..1.17 rows=1 width=32)
-> Seq Scan on tbl_erp_wage_tickets (cost=0.00..1.14 rows=5 width=6)
Filter: (status = 2)