Fixed SQL syntax error.