Moved. The admin panel issue is something far more complex IMHO. If you're having problems with a sql call like that then you might not be the ideal guy to port this.
Of course we still dont have a request/fill plug (which is being made) where people could upload nonported/nonworking plugins and people could "fix" them.
<a href="http://www.domenlo.com">Surreal Art</a>