Hmm, very odd. Can't seem to find anything wrong with the code, or any stray ID values (I had a nightmare scenario of there being out of sync or duplicate mine or album ID values causing cascading problems...).
So I've done the usual in this business, and grumbled a bit then rebooted the server in the hope that'll sort it!
Sparty, would you mind uploading a couple more documents to different mines, and see if there are any more problems.
If there are, I will have a much closer look at this tomorrow.
Thanks,
Simon
my orders are to sit here and watch the world go by