Issue #2383625 by @Mover: Fixed PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry * for key.