the problem is the order of the updates.
move the update code from line 152 - 192 to line 112.
you want the update to reset all of the featured members to 0 to happen before the update to set the new featured member.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.