Fixed mysql syntax error