Remove extraneous LIMIT clause on aggregate queries and add debug info.
Remove extraneous LIMIT clause on aggregate queries and add debug info.

Curufir/smr,tmaus/smr,Curufir/smr,smrealms/smr,hemberger/smr,gamedevforks/smr,tmaus/smr,gamedevforks/smr,gamedevforks/smr,smrealms/smr,smrealms/smrv2.0,hemberger/smr,hemberger/smr,smrealms/smrv2.0,Curufir/smr,gamedevforks/smr,smrealms/smrv2.0,smrealms/smr,smrealms/smrv2.0,hemberger/smr