Should `[[$listOfIDs`]] not be `[[$listOfIDs]]` ie your last backtick is in the wrong place.
Use MODx, or the cat gets it!
The forum ate shamblett's code.
Actually, both your examples have the back-ticks in the wrong place and are missing the closing brackets:
[[getResources? &resources=`[[$listOfIDs]]']]
(assuming that the listOfIDs snippet returns a comma-delimited string of IDs).