Heat the oil in a large pot over a medium heat. Add the onion, garlic, celery and carrot and fry gently for 5–8 minutes, until the onion is soft but not browned.
Stir in the potatoes, stock and tomato and season with salt and pepper. Bring to the boil and add the chopped basil, then reduce the heat, cover and simmer gently until the potatoes are tender, about 15 minutes.
Meanwhile, make the pistou: blitz the basil, garlic and pine nuts in a mini food processor to a thick paste, then mix in the olive oil. Cover and chill until needed.
When the potatoes are tender, add the courgette, white beans and green beans and cook for another 10 minutes, until the green beans are tender. Season to taste.
Divide between bowls and top each with a large spoonful of pistou. Enjoy!