Fix broken SQL when dealing with multiple choices.