QUERY PLAN
Aggregate (cost=1.69..1.70 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..1.54 rows=31 width=8)
Filter: ((status = 2) AND (ticket_type = ANY ('{1,2,4}'::integer[])))