Group only by one column, when selecting more than one, will not work when you turn on strict sql_mode. 

Something like you wrote might work, check the generated query, if in GROUP part will be all columns as in SELECT part.