QUERY PLAN
Aggregate (cost=12.26..12.27 rows=1 width=32)
-> Seq Scan on tbl_erp_advance_payment_tickets (cost=0.00..12.25 rows=1 width=64)
Filter: (status = 2)