$claves = "select clave from realizados where nomartista in (". implode( "," $nombres ) .")";print_r ($claves);