The previous shift stopped just before deployment 45. An inclusive comparison (>=) keeps the boundary value. Combine it with a status check.
Return just the IDs of failed deployments from ID 45 onwards, including 45. Check the row immediately before the boundary as well.