put variable in query