Неверный запрос select title,comment,idparent,path from tree where id=22 order by ord