简单地说,不是标准的SQL语句
mysql help:
MySQL extends the use of GROUP BY so that you can use non-aggregated columns or calculations in the SELECT list that do not appear in the GROUP BY clause. You can use this feature to get better performance by avoiding unnecessary column sorting and grouping. For example, you do not need to group on customer.name in the following query: 
SELECT order.custid, customer.name, MAX(payments)
  FROM order,customer
  WHERE order.custid = customer.custid
  GROUP BY order.custid;In standard SQL, you would have to add customer.name to the GROUP BY clause. In MySQL, the name is redundant. MySQL的扩展,使您可以使用非聚合SELECT列表中的计算列或不出现在GROUP BY子句。您可以使用此功能得到更好的性能,避免不必要的列进行排序和分组。例如,您不需要customer.name组在下面的查询: