so I have this query:
SELECT
n.newsId newsId, n.date newsDate, n.text newsText, c.date commentDate, c.text
commentText
FROM
(SELECT * FROM news ORDER BY date DESC LIMIT 10) n
LEFT JOIN
(SELECT comments.* FROM comments, news WHERE comments.newsId = news.newsId ORDER BY comments.date DESC LIMIT 1) c
ON
n.newsId=c.newsId
And the result is mostly ok, but there are some null values for some reason. Please have a look, thank you :)
results below