select('idLaboratoire') ->whereIntitule('LISST'); $etudes = Table::get('etudes', 'lab-surveys') // ->select('idEtude') ->join('idLaboratoire', $lisst) ->orderby('idEtude') ->unique(); $fiches = Table::get('fiches', 'lab-surveys') ->select('idFiche') ->orderby('idFiche') ->join('idEtude', $etudes); $questions = Table::get('questionsFiches', 'lab-surveys') ->select('idQuestionFiche') ->select('intitule', null, null, 'question') ->orderby('idQuestionFiche') // ->unique() ->join('idFiche', $fiches); $repAtt = Table::get('reponsesAttenduesFiches', 'lab-surveys') ->select('intitule', Rows::SEL_CONCAT, null, 'reponses') ->orderby('idReponseAttendueFiche') ->join('idQuestionFiche', $questions); $sujets = Table::get('sujets', 'lab-surveys') ->select('idSujet') ->select('pseudo'); var_dump( $v=$repAtt->fetch() ); ?>