QUERY PLAN
Aggregate (cost=4.14..4.15 rows=1 width=32)
-> Seq Scan on tbl_erp_other_payment_tickets t (cost=0.00..4.01 rows=48 width=6)
Filter: ((verify_at <= '2025-12-31 23:59:59+08'::timestamp with time zone) AND (status = 2) AND (ticket_type = ANY ('{1,2,4}'::integer[])))