Use selectionArg(query parameter) instead of String concatination.

Puree crashes if output type contains single quote character because of invalid SQL query string.