select * from `nodes` where `parent` = '0' and `deleted` = 'no' order by `sort` asc