Ovviamente avrei aggiunto il campo però io ho visto che nella query hai fatto:

SELECT id, dato... e successivamente WHERE dato = '$dato'...

E l'id? scusa non bisogna mettere anche WHERE dato = '$dato', id = '$id'?

Grazie