Need help for "status panel" plugin

hi, I am getting desperate with the status panel.
I have a table in mysql, where I keep the last backups.
I could replicate all the hosts by location, but I need to have more conditions for the data to be validated, the problem is that in the select it only accepts one parameter.
If I use variables, it keeps getting the hosts, but the remaining elements always return the first one
Basically I wanted to put in each frame, the host and the last jobs done when the schedule name is different and my threshold would be the duration.
Can anyone help me? (Grafana 7.4.5)