select * from data where sn='12250' and pq='temp' order by id desc limit 4
idsntspqvaluesystemts
22761227 12250 temp 26.25 1563678002 Sun 21 07 2019 05:00:02
22761051 12250 temp 26.25 1563677702 Sun 21 07 2019 04:55:02
22760871 12250 temp 26.31 1563677402 Sun 21 07 2019 04:50:02
22760695 12250 temp 26.25 1563677102 Sun 21 07 2019 04:45:02

Sun Jul 21 05:02:45 2019 by walley