The four people with BOBBI KRISTINA BROWN just before her fatal tragedy were ordered to stay away from her funeral – denied the chance to bid farewell to a woman they claim to have loved!

As family and friends mourned Whitney Houston’s 22-year-old daughter at an Aug. 1 service, an insider told The National ENQUIRER that the gathering didn’t include the three men and one woman who know the secrets that left her in a coma on Jan. 31!

“The druggie pals that were with Krissi before she was found face down in the water-filled bathtub were not invited,” the source told The ENQUIRER. “In fact, they were barred from attending!”

Atop that list was Bobbi Kristina’s notorious boyfriend Nick Gordon.

The volatile self-styled “husband” of the dead girl had desperately pleaded with family members to be included, and even sent a groveling email to her father Bobby Brown and her aunt Pat Houston before the funeral.

It read in part: “I’m begging you both to please put your differences aside and allow me this chance. Krissi loved me very much and she would want me there.”

The family dismissed his plea, and security guards surrounded the church to keep Nick away.

Also barred were Max Lomas – who placed the 911 call that fateful morning – and his girlfriend Danyela Bradley, along with Duane Hall, who partied with Bobbi Kristina in the hours before she was found unresponsive.

Invited guests had to produce government-issued ID before entering the St. James United Methodist Church in Alpharetta, Ga. for the prom-themed “Sweet 16” funeral.

Grieving inside were Bobbi Kristina’s 82-year-old grandmother Cissy Houston, close friend and “Madea” star Tyler Perry, Grammy-winning singer Monica, gospel great CeCe Winans, and Atlanta Mayor Kasim Reed.

A noticeable no-show was Whitney Houston’s cousin, legendary singer Dionne Warwick, who was quoted as being “offended” by Pat’s Sweet 16 prom theme.

A squad of police motorcycles escorted three limousines carrying family members to the church, along with the hearse that held Bobbi Kristina’s silver casket.

Dozens of cars followed to hold the estimated 300 mourners.

Members of both the Brown and Houston families spoke during the funeral, and Whitney’s mother Cissy sang “The Lord Is My Shepherd.”

The final song was Whitney’s rendition of “Jesus Loves Me.” Bobby Brown concluded the service by resting his hand on the casket in an emotional moment that brought tears to the audience.

Bobby also wrote a heartbreaking message in the funeral program: “I also will always love you.”

But the service was marred when Bobbi Kristina’s aunt Leolah Brown shocked mourners by interrupting Pat’s eulogy.

She shouted, “Whitney will haunt Pat Houston from the grave” before being ejected from the church.

The night before the funeral, the warring families separately attended private viewings of Bobbi Kristina at a wake held at the Murray Brothers Funeral Home in Atlanta.

Lady J, the goddaughter of Whitney’s brother Gary, told The ENQUIRER: “Bobbi Kristina looked beautiful in the open casket. In fact, she looked amazing!”

Bobbi Kristina was to be buried alongside her mother two days after the funeral on Aug. 3, at the Fairview Cemetery in Westfield, N.J. – 183 days after being found unconscious.