select * from army_ru_catalog where check_end=0 and check_active=1 and parent=function.mysql-select-db order by ord ascError SQL