Sicuro che non è $datas ad avere delle doppie chiavi ? magari fai un "fetch both" (associativo+indice)