As for analyzing your SQL, since you only just joined up here, I want to point out something I mentioned last week if you may have missed it: you can get a LOT of mileage out of analyzing the FusionReactor log files, especially the JDBC log files. You can find out more at
http://groups.google.com/group/fusionreactor/web/log-parser-commands-for-fr-3, including info about a free tool, a link to an earlier message with still more details, and some scripts that I and others have posted to help do such analysis.
You just needed to reconnect the broken line (the 3 was somehow split to the next line):
http://groups.google.com/group/fusionreactor/web/log-parser-commands-for-fr-3
/charlie