$id_libro = implode("' OR id_libro='", $array_libros); $sql="SELECT id_user FROM usuario_libro WHERE id_libro='".$id_libro."'";