Place the first 7 ingredients into a large pot with a heaped tsp of salt and cover with cold water. Bring to a boil, then simmer gently for about 2 hours, stirring occasionally
Meanwhile, cook the pasta in well-salted water until al dente, drain and set aside
In a small frying pan, cook the onion and garlic in a generous drizzle of olive oil until soft, then add the tomato, paprika and a pinch of salt and cook for another couple of minutes. Set aside
After 2 hours, remove the pork ribs and ham bone. Strip the meat from the ribs and cut the kernels from the corn and return to the stew, then discard the bones
Stir in the onion and tomato mix, then the vinegar (start with 1 tbsp), then taste the maneštra and add salt and pepper as needed. Serve with crusty bread