Sorry, so sieht das Query richtig aus, habe noch das GROUP BY vergessen:
SELECT tabelle2.*, COUNT(tabelle1.ID) AS ID_num FROM tabelle2 LEFT JOIN tabelle1 ON tabelle1.ID IN (tabelle2.ID) GROUP BY tabelle2.ID ORDER BY ID_num DESC
Sorry, so sieht das Query richtig aus, habe noch das GROUP BY vergessen:
SELECT tabelle2.*, COUNT(tabelle1.ID) AS ID_num FROM tabelle2 LEFT JOIN tabelle1 ON tabelle1.ID IN (tabelle2.ID) GROUP BY tabelle2.ID ORDER BY ID_num DESC