So a Priest Walks into a Bar ...

Anthony Hopkins' exorcism movie "The Rite" was based on the life of Father Gary Thomas -- who decided to investigate a place where celebrities face their demons every night ... the club scene in Hollywood.

Check out TMZ on TV -- click here to see your local listings!