You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY c.color_name, g.good_list_id, g.color_id' at line 4