getauthuser() function returns the NAME of authenticated
user,
specifically, the NAME passed to <cfloginuser> tag.
i am thus assuming you are passing the userID as part of NAME
attribute
to cfloginuser tag.
now look at what you are passing as NAME to your cfloginuser
tag:
name="sNameVariable1, sNameVariable2"
see it? see the SPACE after the comma? all cf list functions,
including
listrest() assume a COMMA as default list delimiter. thus
listrest(getauthuser()) will return "[SPACE]userID". that is
why it does
not work in your sql WHERE clause
several options you have here to work around it:
1) declare a custom delimiter in your listrest() calls:
listrest(getauthuser(), ", ")
2) use trim(listrest(...)) to trim the whitespace
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/