Fixed a few idiosyncrasies in the MySQL syntax.
#588 - Fixed Question Validation logic.