Something like this,
WHERE (/* LIST OF STUFF PASSED IN */) ARE IN (/* QUERY */)
Well actually one will be a list of things I pass in.
EDIT: Apparently you cannot union of list of params eg UNION ('a', 'b', 'c')
EDIT 2: Apparently a comma separated list of stuff is not the same as a query of one column
Edited by _Alexander, 17 August 2013 - 06:18.