What version of mySQL do you have installed? It may not be a supported version since mySQL only started supporting nested SELECT statements in version 5 I believe.
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.