select * from data where sn='thermostat0' and pq='tout' order by id desc limit 4
idsntspqvaluesystemts
21718702 thermostat0 tout 20.69 1561534834 Wed 26 06 2019 09:40:34
21718691 thermostat0 tout 20.69 1561534806 Wed 26 06 2019 09:40:06
21718665 thermostat0 tout 20.69 1561534778 Wed 26 06 2019 09:39:38
21718648 thermostat0 tout 20.69 1561534749 Wed 26 06 2019 09:39:09

Wed Jun 26 09:40:45 2019 by walley