Isso significa apenas que o MySQL insiste que você forneça o
SELECT
interno um nome, como:SELECT MAX(counted) FROM
(
SELECT COUNT(*) AS counted
FROM table_actions
WHERE status = "good"
GROUP BY user
) AS counts;
SELECT
interno um nome, como:SELECT MAX(counted) FROM
(
SELECT COUNT(*) AS counted
FROM table_actions
WHERE status = "good"
GROUP BY user
) AS counts;