Possible Duplicate:
every derived table must have its own alias
I need to find maximum of actions per user
table columns: action_id
, action_status
, user
request:
SELECT MAX(`counted`) FROM
(
SELECT COUNT(*) AS `counted`
FROM `table_actions`
WHERE `status` = "good"
GROUP BY `user`
)
error message: "Every derived table must have its own alias"
what is wrong?..