Fixed a bug when passing "using" to SearchQuerySet (closes #786).
Added a unit test for #786.