QUERY PLAN
Sort (cost=3.42..3.47 rows=22 width=102)
Sort Key: is_current DESC, sort, id
-> Seq Scan on tbl_erp_account_captions (cost=0.00..2.92 rows=22 width=102)
Filter: ((parent_id IS NULL) AND (type = 2))