Hallo,
dann kann man eigentlich nur versuchen, den Fehler einzugrenzen:
MySQL erlaubt eine vom Standard abweichende Group By Syntax, in der nicht alle ausgewählten Felder mit in die Gruppe oder Aggregatfunkionen aufgenommen werden. So richtig getraut habe ich dem aber noch nie. Machen wir's mal ANSI-standardkonform
SELECT comment.NEWS_ID, count(IFNULL(comment.KOMM_ID,1)) as cnt FROM News as news LEFT OUTER JOIN Kommentare AS comment ON news.NEWS_ID=comment.NEWS_ID GROUP BY IFNULL(comment.NEWS_ID,1) ORDER BY news.Datum
richtige Anzahl? Dann:
SELECT max(news.NEWS_ID), max(news.Topic), max(news.Nachricht), max(news.Verfasser), max(news.Quelle), max(news.Datum), count(IFNULL(comment.KOMM_ID,1)) FROM News as news LEFT OUTER JOIN Kommentare AS comment ON news.NEWS_ID=comment.NEWS_ID GROUP BY IFNULL(comment.NEWS_ID,1) ORDER BY news.Datum
viele Grüße
Axel