ID
を想定 AUTO_INCREMENT
です 列、
SELECT a.user_ID, a.action
FROM tableName a
INNER JOIN
(
SELECT DISTINCT user_ID
FROM tableName
ORDER BY ID DESC
LIMIT 3
) b ON user_ID = b.user_ID