https://www.php-resource.de/forum/sql-datenbanken/96292-group-by-array