I'd guess that... partition by ld.DatabasesInstanceUsers_SQN order by ld.DatabasesInstanceUsers_LDTS ...is not producing the same results each time you run it. you have a tie in there or something.
"If I had been drinking out of that toilet, I might have been killed." -Ace Ventura