Parameters in sub-selects.

Closes #48.