Fix a bug in some user searches

The 'subquery' variable used for combination list searches is referenced
outside the if-statement where it is initialized.  This moves the
initialization out of the if-statement to avoid an undefined reference if
the other branches are followed.