Note on a class of exact solutions in magneto-hydrodynamics