QUERY PLAN
Sort (cost=3.34..3.39 rows=20 width=74)
Sort Key: is_current DESC, sort, id
-> Seq Scan on tbl_erp_account_captions (cost=0.00..2.91 rows=20 width=74)
Filter: ((parent_id IS NULL) AND (type = 2))