php5query: 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/sbin/php5query - from package: php5-common

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