That just means MySQL insists that you give the inner SELECT a name, like:
SELECT MAX(counted) FROM
( SELECT COUNT(*) AS counted
FROM table_actions
SELECT MAX(counted) FROM
( SELECT COUNT(*) AS counted
WHERE status = "good"
GROUP BY user
) AS counts;
GROUP BY user
) AS counts;
Comments
Post a Comment