Learn caching, dammit
I looked at the code, nothing looked THAT bad, so I did an EXPLAIN, noticed a missing index, added it. I ran the report in 4 minutes.
Clearly, whoever wrote that report didn't know nearly enough about SQL.
Google cache: http://webcache.googleusercontent.com/search?q=cache%3Agun.i...