Saute the onion and garlic in the olive oil in a large pot. Once the onion is soft, add the tomatoes, broth, beans and spices. Bring to a boil. Simmer for 15 minutes to allow flavors to blend.
With a potato masher, smash up some of the beans. Stir.
Add the chopped ham and red wine vinegar, stir and simmer for about ten more minutes.
Notes
Store leftovers in the refrigerator. They should stay good for 4 days.