select * from data where sn='12250' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
20705282 12250 temp 24.69 1558467902 Tue 21 05 2019 21:45:02
20705108 12250 temp 24.69 1558467602 Tue 21 05 2019 21:40:02
20704930 12250 temp 24.62 1558467302 Tue 21 05 2019 21:35:02
20704758 12250 temp 24.69 1558467002 Tue 21 05 2019 21:30:02

Tue May 21 21:46:02 2019 by walley