fixed bug, a faulty sql query can be produced in case that two or more conditions are in use and one of the conditions is on a field in key_value schema and ext_method option is used.
fixed bug, a faulty sql query can be produced in case that
two or more conditions are in use
and one of the conditions is on a field in key_value schema
and ext_method option is used.

wvanbergen/scoped_search,lzap/scoped_search,jlsherrill/scoped_search,wvanbergen/scoped_search,lzap/scoped_search,jlsherrill/scoped_search,johnpmitsch/scoped_search,johnpmitsch/scoped_search