Hola alguien me puede decir que falla en la query??
$queryCursos = $mysqli->query("SELECT MAX(DATE(Fecha)) Fecha,SUM(PRECIO) Total, idpedido, pdf, factura
FROM pedidos
WHERE id_cliente ='$usuario'
GROUP BY id_cliente, idpedido
ORDER BY Fecha, id DESC");
El error que me devuelve es con el GROUP BY
Errormessage: Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hospital.pedidos.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by