• I found that it stopped working with the following sql statement

    "Select col1,col2 from table1 where (col1 = " + @[User::IDMEDIUM] +")"

    M.L.