hai provato a mettere gli apici?
$IDpersona = $_REQUEST["dipendenti"];

e a mettere un echo davanti alla query per vedere se ha un valore?