Maybe, but that depends on your requirement; do you want one string containing all the ids joined together, or a list of ids?