So in short, this should be simple...I have a static query, that I\'m trying to re-create dynamically, however it always produces a syntax error. The confusing thing is that