SELECT e.*,COUNT(se.ID) AS AnzahlSubEtats FROM etats e LEFT JOIN subetats se ON se.zu_etat = e.k_ID GROUP BY e.k_ID ORDER BY AnzahlSubEtats DESC