select * from data where sn='12250' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
29380412 12250 temp 22.94 1576446602 Sun 15 12 2019 22:50:02
29380232 12250 temp 22.94 1576446302 Sun 15 12 2019 22:45:02
29380026 12250 temp 23.12 1576446002 Sun 15 12 2019 22:40:02
29379827 12250 temp 22.88 1576445702 Sun 15 12 2019 22:35:02

Sun Dec 15 22:49:45 2019 by walley