loofah-query: 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/loofah-query - from package: python-loofah

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