Court orders inquiry