-werners-
Esteemed Contributor III

how does your variables section look like?
Perhaps something you have tried but what if you use backticks instead of the single quotes in the query.
The var is substituted with the value (the value itself does not contains backticks though!).