If the person in the wrong is sentenced to be flogged, the judge must command him to lie down and be beaten in his presence with the number of lashes appropriate to the crime.