Trials near prison risk defendants' rights