While iterating over the results of a ZSQL method, which includes a fieldname "userid" I call another ZSQL method like so, passwdGetUser(username=_.SecurityGetUser) passwdGetUser takes two optional arguments "username" and "userid", select * from passwd <dtml-sqlgroup where> <dtml-sqltest userid type=int optional> <dtml-and> <dtml-sqltest username type=nb optional> </dtml-sqlgroup> When called like above, passwdGetUser(username=_.SecurityGetUser) I found that some times this wouldn't return anything. Investigation turned up that since "userid" is set in the outer iteration it gets passed to passwdGetUser even though it's not explicitly in the statement. I solve this problem by calling, passwdGetUser(username=_.SecurityGetUser, userid='') To me, this is non-obvious and I'm wondering why this is happening, and if it's meant to. -- Bryan C. Andregg Duke University Medical Center Programmer Dept. of Anesthesiology e <bryan.andregg@duke.edu> p +1 919 684 6201