I have been experimenting with Redis and MongoDB lately and it would seem that there are often cases where you would store an array of id\'s in either Mongo
You can create a temporary table where you can put any number of IDs and run nested query Example:
CREATE [TEMPORARY] TABLE tmp_IDs (`ID` INT NOT NULL,PRIMARY KEY (`ID`));
and select:
SELECT id, name, price FROM products WHERE id IN (SELECT ID FROM tmp_IDs);