beanO.
Part of the problem is that the beans contain oligosaccharides that the body can't digest, causing flatulence. What you want to do is take an enzyme that will help break these down.
Enter alpha-galactocidase, which breaks down those oligosaccharides so that your body can digest them, thereby relieving the flatulence.
Just add a drop to the first bite of your food, and it will eliminate the embarrassing after-effects.