r2414 - fix SQL in mergeSearchResults()