It would be helpful to have the SQL query that triggered this exception.