[server] Fix SQL syntax error for MySQL.