select * from data where sn='thermostat0' and pq='tin' order by id desc limit 4
idsntspqvaluesystemts
21719064 thermostat0 tin 23.81 1561535461 Wed 26 06 2019 09:51:01
21719048 thermostat0 tin 23.75 1561535433 Wed 26 06 2019 09:50:33
21719037 thermostat0 tin 23.81 1561535404 Wed 26 06 2019 09:50:04
21719007 thermostat0 tin 23.75 1561535376 Wed 26 06 2019 09:49:36

Wed Jun 26 09:51:27 2019 by walley