query-pr: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/query-pr - from package: gnats-user

You may install the required package with command apt-get install {package}
Error in other languages:
query-pr: bevel nie gevind nie
query-pr: comandă negăsită
query-pr: comando não encontrado
query-pr: commande introuvable
query-pr: command not found
query-pr: käsku ei ole
query-pr: không tìm thấy lệnh
query-pr: komanda nerasta
query-pr: Kommando nicht gefunden.
query-pr: kommandot finns inte
query-pr: komut yok
query-pr: nie znaleziono polecenia
query-pr: níor aimsíodh an t-ordú
query-pr: no se encontró la orden
query-pr: no s'ha trobat l'ordre
query-pr: opdracht niet gevonden
query-pr: parancs nem található
query-pr: perintah tidak ditemukan
query-pr: príkaz nenájdený
query-pr: příkaz nenalezen
query-pr: команда не найдена
query-pr: командата не е открита
query-pr: 命令找不到
query-pr: コマンドが見つかりません