Here's my setup, in case there's a much easier solution to my rather simple problem:
I've got two tables. One is for images, has 3 columns of interest (id, filename, description) and the other is for galleries (id, list-of-images, description).
The user loads the page, PHP gets the list of galleries available in the MySQL table, the user selects one, and the script is supposed to return an array of image file names with their descriptions... in the right order. Also, when I try to use "IN" with anything other than the primary ID, MySQL has a fit. I'm running v4.0.18.