I removed the cfloop code and the query worked:

<cfoutput query="statistics">
.. . .
</cfoutput>

instead of

<cfoutput>
<cfloop query="statistics">
.. . .
</cfloop>
</cfoutput>