Talking about hitting a wrong note! A former BF of the late pianist Liberace and self-confessed Michael Jackson lover has been sentenced to two years in prison for felony possession of methamphetamine, The NATIONAL ENQUIRER has learned exclusively.

Scott Thorson, 49, was arrested on several drug-related charges in Palm Springs on Aug. 27, and has been assigned to an Indio, Calif., jail before going to state prison.

In a 2004 interview with The ENQUIRER, Thorson claimed in the early 80s he had a homosexual affair with Michael Jackson.

Thorson’s five-year romance with Liberace ended in 1982 after Thorson became addicted to painkillers and other drugs, and the flamboyant pianist booted him from their Los Angeles penthouse.  Thorson attempted to unsuccessfully sue for plaimony.

 After the split, Thorson filed a $113 million palimony suit against the showman, but eventually settled out of court for a reported $95,000.

Liberace died at age 67 in 1987 of AIDS complications.