I think I’m just going to give up on the nested query and simply run it as a separate query with its own handle. This will increase the work needed to complete the task, but I simply don’t think this is going to work as is, possibly because the query is “hiding” inside the parenthesis. On the other hand, if I can get it to work without the SQL …