to clarify Dan's post a bit more:
to select multiple records at once you use WHERE columnname
IN
(comma-delimited list of values) in your query
thus, you do not need the cfloop at all, since the value of
form.error_id is already a comma-delimited list.
your query will look something like:
SELECT ...
FROM ...
WHERE error_id IN (<cfqueryparam
cfsqltype="cf_sql_integer" list="yes"
value="#form.error_id#">)
assuming error_id is an INT/NUMBER data type. if it is of
text-based
data type, then change cf_sql_integer to cf_sql_varchar.
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/