In the bottom of a heavy pot, heat olive oil. Add celery, onion, garlic, and all peppers and lower heat to medium. Cook for five minutes- stirring occasionally. Cover with a lid, lower heat to low and cook another 5 minutes
Add black beans and black eyed peas. Smush the tomatoes into the pot and add the juice from the can.
Add full box of chicken broth, salt, pepper, chipotle powder, oregano, thyme, apples and 1/2 the bag of corn
Cook over low/medium heat for 20 minutes until simmering
Puree 3/4 of the soup in the blender and add back to the pot. Add the remaining can of black beans, the remaining corn and the ham
Cook over medium heat until simmering (about another ten minutes)