The
$values variable will be inserted into the statement where the '?' is located. More than likely your join command is not creating a valid Oracle statement within the IN command. Actually, I do not see 'IN' as a valid construct within a SELECT statement.
Here is the cite I use to get my Oracle information (because the Oracle site really ticks me off).
the_Don
...making offers others can't rufuse.