Fixed a SQL syntax error.