How to display one static value from database in Grafana gauge?

Hello all. I have table “settings”, where is only one record with field “name” and value “target_temperature” and field “value” with value of 25. I would like to display this value 25 in gauge next to gauge with real temperature, so I can see “target” setting for automatic heater. I can display real temperature, but what SQL statement do I need to display static value from that exact record - field “value” where field “name” = “target_temperature”? Thank you very much, Jan