Heat the olive oil in a large pot over medium heat.
Add in the onions, carrots, and celery and saute for 5 minutes.
Add in the garlic, paprika, thyme, and red pepper flakes if using. Stir well and saute for 1 minute.
Add in the chicken or vegetable broth and bring to a slow boil.
Stir in the chopped ham and Northern beans.
Simmer for 45 minutes.
Taste and add salt and pepper as needed.