added tests for mysql syntax error; changed error message