$ids = join(',',$user_ids);
$sql = "SELECT * FROM USERS WHERE user_id IN ($ids)";
Passare un array a una query utilizzando un WHERE clausola
http://www.php.net/manual/en /function.join.php
http://www.php.net/manual/en /function.implode.php