I couldn't find wether this was possible so, is there any option to limit a GROUP_CONCAT
in MySQL-function?
E.g.:
GROUP_CONCAT(ColName ORDER BY ColName DESC LIMIT 5)
I don't want to use a subquery since this will seriously slow down the performance. I can slice the array later in PHP, but I was wondering or MySQL had an option to achieve this in MySQL already.