et tu boucles sur celle-ci pour savoir si ce même Intitule_segment se trouve dans la première requete
SELECT COUNT(*) AS nbfaible, Intitule_segment FROM recommandations WHERE (Risque = \'Faible\') GROUP BY Intitule_segment UNION SELECT 0 AS nbfaible, Intitule_segment FROM recommandations WHERE (Risque != \'Faible\') GROUP BY Intitule_segment;