You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by time desc LIMIT 5000' at line 1
No. Time & Date CO
(ppm)
NO2
(ppm)
O3
(ppm)
SO2
(ppm)
PM10
(ug/m3)
PM2_5
(ug/m3)
PM1
(ug/m3)
TEMP
(C)
HUM
(%)
PRES
(Pa)