the reason your query did "exactly the opposite" is quite likely because there was no column value that satisfied your condition, which was
WHERE ... NOT IN ( '
something' )
that's valid syntax, because inside the parentheses is a list of items, and in this case, the list happens to have just one item -- a character string
now, i think what you want is
WHERE ... NOT IN ( 38, 24, 36 )
or alternatively
WHERE ... NOT IN ( 'foo', 'bar', 'wow' )
so what you have to do is adjust your query accordingly
by the way, be careful using the name "valuelist" as your coldfusion variable, because that's also the name of the
ValueList function used in query-of-query to change a column into a list of values
rudy