QUERY PLAN
Aggregate (cost=12.56..12.57 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..12.55 rows=1 width=64)
Filter: ((status = 2) AND (ticket_type = 3))