Fixed sql vulnerability in SimilarManager filter_o