The attached example model shows a user-command ("command1") with this query:
query("SELECT MAX(Prio) FROM GlobalTable1");
The greatest value of the column "Prio" is searched in GlobalTable1 and this works fine.
But getquerymatchtablerow("GlobalTable1", 1); does not return the row 1 where the value is in row 1.
I can´t find out why but it seems as the number of rows in GlobalTable1 is returned?