Conditional and parameterized named query syntax

You could use this method as long as your columns are a string and not a dictionary, formatted along the lines of "colName, colName2, etc"