select * from pages where parent='0' and visibility!='none' order by position