SELECT *, SD_Serie_Ligne.idGammeArticle, SD_Serie_Ligne.ordre FROM vGRN_ARTICLE_GRN_ARTICLE_NON_STOCK a INNER JOIN SD_GammeArticle s ON a.arcod = s.RefArticle INNER JOIN SD_Serie_Ligne ON s.id = SD_Serie_Ligne.idGammeArticle where a.arutil='Non' and arcod=refarticle and s.societe='GROSSERON' and a.societe='GROSSERON' and gammeID=20007 AND s.id in( 5854752,5854753,5854754,5854755,5854756,5854757,5854772,5854758,5854759,5854774,5854815,5854776,5854761,5854784) AND exists (select * from SD_Serie where id = SD_Serie_Ligne.idSerie) ORDER BY SD_Serie_Ligne.Ordre