There are a couple of options. One is to not use a loop and just do this:
WHERE imageHash in (
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#ValueList(hashTableLatest.imageHash)#" list="yes">
)
</cfquery
If possible, you should look for ways to get all the information you need from a single query.