diff --git a/ecrire/public/compiler.php b/ecrire/public/compiler.php
index 268274555d7bbebc3d977d4c975c8cf09b8289d0..af2ff9c9d3d80bd0b0b0ed12413ba326959d22b4 100644
--- a/ecrire/public/compiler.php
+++ b/ecrire/public/compiler.php
@@ -285,7 +285,9 @@ function calculer_boucle($id_boucle, &$boucles) {
 						$jointures[] = array('',array($id=reset($j)),end($j));
 					}
 					$jointures[0][0] = $id_table;
-					fabrique_jointures($boucle, $jointures, true, $boucle->show, $id_table);
+					if (!array_search($id, $boucle->from)){
+						fabrique_jointures($boucle, $jointures, true, $boucle->show, $id_table);
+					}
 					// trouver l'alias de la table d'arrivee qui porte le statut
 					$id = array_search($id, $boucle->from);
 				}