First off, I didn\'t write this query. It\'s created dynamically in code I inherited. It works 99.9999% of the time so I\'d prefer not to touch it. However. The following qu