Fix HSQL to handle user parameters in a subquery