try changing this part of your sql statement
AND MenuItem.MenuItemCategoryID = "1"
to
AND MenuItem.MenuItemCategoryID = 1
you don't need quotes around numbers and this is the 1st thing that strikes me as the cause of your issues
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.