SELECT * FROM comments LEFT JOIN user ON user_id = users LEFT JOIN news ON user = users WHERE data_id =9 As in the same request, count how many comments.id for each user.user_id if user.user_id == comments.users
If you don’t understand the question, don’t poke it - just ask for clarification.
select users, count(1) from comments group by userswill already give the number ofselect users, count(1) from comments group by usersfor each users - Mikecomments.idfor each user. Not a tragedy of course, but I would like to get this data. In real life it will look like comments to the news, in which for each user his total number of comments on the site will be displayed. - wwwplaton 4:04 pm