Fixed issue with bound args in joined subqueries