Thanks for the reply ManagerJosh but that wasnt the problem, it was my DB

On reading your reply I assumed the script should work on phpnuke 6.0 so I tried it on a clean nuke6.0 install & it worked, I then got a backup copy of my database containing all the user's & it worked beautifully so it seem's the problem was with my database, *not* the script.
Thank you so much for your reply/help/script, youve saved me a ton of work
Cheers
amp2000