Update features.php

clear query before making the new one for getting max ordering value.