The last post list should not include a post that was not "saved" in the database.
THAT is my point. Usually, these are done as a "all or nothing" - if one of the updates fails, the whole thing should be rolled back, so the database is... "coherent". You know, no loose ends/unmatching records.
The 500 error could be soooooo many things.. but THAT one worries me.