43 minutes ago BY TMZ STAFF

Breaking News

Kesha ﻿wept openly in court when a judge ruled she will NOT be let out of her Sony Music contract.

Kesha is accusing her longtime producer Dr. Luke of sexually, mentally, and physically abusing her during the years they cranked out hit music — and as a result she wants out of her Sony deal.

She had sought an injunction allowing her to make an album outside of Sony, but the judge shot that down Friday morning … saying she can work with a different producer under the Sony umbrella.

Kesha’s attorneys say they’re worried Sony will blackball her if she refuses to work with Luke.

Dr. Luke is not in the courtroom. There’s been no decision on the abuse claims in Kesha’s lawsuit.

Story developing …