kbc1 wrote:I store ID's in one varchar field
Bad move, and now you've discovered why (or, at least, one reason why). Have an additional table with one field for one of these IDs and one field that identifies which record its associated with. Then extracting the values is just a SELECT query like any other.
For more information, see this thread. Oh, and this one, also.