Heat the oil in a large, heavy-based saucepan over a medium heat. Add the onions and garlic and cook for 10 minutes, or until translucent. Add the tomatoes, stock, kidney beans, black beans, spices, herbs and add the quinoa. Simmer for 30 minutes and add more liquid stock to achieve the right consistency.