What is the SQL statement being used? It might not be understood by the query builder. Can I see a copy of the page and get FTP access to the server for testing? I'd have to investigate it more to determine the cause of the issue.
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.