I want to select distinct values of Column A where Column B = any members of a set S.
Is there a way to do this directly in SQL without looping and then filtering afterwards in code?
Thanks
EDIT: The set S is a PHP array. Does this make a difference?
mysql,mysqli,PDO, etc.?