I have a query that works just fine in our test environment. I pointed to our production side though and it takes 517 seconds to execute. This will not work well for a Web Application don't you agree?
It seems that the main problem is in one of the tables, on test it only has about 50,000...