A text condition can select several rows. Inspect the IDs before changing the field you used to find them.
List the IDs of all staging deployments. Then reuse the same WHERE clause to rename their environment to preprod. Check that production rows kept their environment.