Fix mistake with previous commit.

I forgot to put the correct variable into the query like a doofus.

Refs #4168