Fixed syntax errors for mysql.