use GROUP BY instead of Distinct.
UserEmail > "c" is not a valid syntax
the > operator stands for Greater Than. You cannot perform that sort of math operation on a string, only on a number:
UserID > 5 would be valid
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.