Erreur SQL ! select id_rider,
max(
concat(
concat(repeat('0', 10 - length(sautmax)), sautmax, '_'),
concat(date, '_'),
concat(repeat('0', 10 - length(id_session)), id_session)
)) as str
from sessions s
where not isnull(sautmax) and sautmax <> 0 and id_rider not in (0, 14) and datediff(now(), date) <= 365 group by 1 order by 2 desc limit 10 Lost connection to MySQL server during query