QUERY PLAN
Sort (cost=10.22..10.23 rows=1 width=100)
Sort Key: serial_no, id
-> Seq Scan on tbl_ledger_account_captions (cost=0.00..10.21 rows=1 width=100)
Filter: (is_auxiliary_customer AND (NOT is_delete) AND (ledger_id = 1))