SELECT
COUNT(wc_forecast.id_forecast) AS q,
user.name AS name, user.screen_name AS screen_name
FROM user
JOIN friend ON friend.id_str = user.id_str
LEFT JOIN wc_forecast ON wc_forecast.id_user = user.id_user
WHERE
friend.id_user = 3
GROUP BY wc_forecast.id_user
ORDER BY q DESC
SELECT
COUNT(wc_forecast.id_forecast) AS q,
user.name AS name,
user.screen_name AS screen_name
FROM user
JOIN friend ON friend.id_str = user.id_str
LEFT JOIN wc_forecast
ON wc_forecast.id_user = user.id_user
WHERE
friend.id_user = 3
GROUP BY
user.id_user
ORDER BY
q DESC