[mysql] MySQL - Using If Then Else in MySQL UPDATE or SELECT Queries