In this case, I think there is no other way than to evaluate each column, like this:
update my_table set course1 = if(course1 = 'math', 'none', course1), course2 = if(course2 = 'math', 'none', course2), course3 = if(course3 = 'math', 'none', course3) where name = 'John';