Is this the same method being used on you site?
http://blockexplorer.com/q/totalbcI hope you can consider providing these service to function as an early warning system for the bitcoin network.
It's not.
The value returned with the SQL is now actually less than the "ideal" number, as some miners have thrown away block reward BTC. I might make a /q page for it eventually, as the difference is interesting.