I have table with player-s in many-to-many relation with skill-s
player
skill
The goal is to list the players and their \"top 3 skills\" with a single q
There is a much cleaner solution. Wrap it inside another SELECT statement.
SELECT
SELECT GROUP_CONCAT(id) FROM ( SELECT DISTINCT id FROM people LIMIT 4 ) AS ids; /* Result 134756,134754,134751,134750 */