QUERY PLAN
Sort (cost=1.86..1.87 rows=1 width=8)
Sort Key: id DESC
-> Seq Scan on tbl_ledger_tickets (cost=0.00..1.85 rows=1 width=8)
Filter: ((ledger_id = 1) AND (status = 1) AND (type = 2) AND (settle_caption_id = 8) AND (settle_month = '2026-05-01'::date))