SELECT * from (SELECT * FROM sites  
		INNER JOIN rel_site_pg
		ON sites.code_site=rel_site_pg.code_site) AS siteRel, plan_gestion
	WHERE siteRel.id_pg=plan_gestion.id_pg;