Erreur SQL !
select distinct floor(t.type_nav/10)*10 as type_nav, t.img, en as lib, count(*) as nb from sessions s, types_navigation t where floor(s.type_nav/10)*10=t.type_nav and id_rider=1004 and year(s.date)=2018 group by 1 order by 2 asc
Lost connection to MySQL server during query