Finally , in 1998 , it took a devastating judgment by Sheriff James Paterson to overturn one of the maddest laws produced by any scare : the ban on selling beef on the bone which grew out of the panic over BSE .