Fix an SQL syntax error.  Ticket