Hi Heather,
You have to pass parameters into your custom sql query – you can’t use the dmx {{}} type of syntax directly in your query.
You add a parameter and give it a name, like :P1 and then you choose your dynamic data by setting an expression, which has the data binding options. You then type :P1 wherever you want that value inserted into your query.