Erreur fatale : SQLSTATE[HY000]: General error: 1 near "order": syntax error ligne 33 (/home/chdznra/www/site/app/connexion.php)
select I.CodeID as CodeID, I.Sexe as Sexe, I.NombreUnions as NombreUnions, I.NombreEnfants as NombreEnfants, CASE WHEN E.DateTri is Null THEN 9223372036854775808 ELSE E.DateTri END as DateTri from Individus I left join Evenements E on E.CodeID = I.XrefMainEventNaissance where (XrefPere = 287366 and I.CodeID !=287318 and I.Confidentiel < 1 order by DateTri