check whether parameter other_ids include any element before create IN statement.