It looks like one of these DELETEs (note that there are two for the same row) should be for row #2. Sequence is supposed to be:
DELETE row #1 DELETE row #2 UPDATE row #4 to be row #1
It looks like one of these DELETEs (note that there are two for the same row) should be for row #2. Sequence is supposed to be:
DELETE row #1
DELETE row #2
UPDATE row #4 to be row #1