La variabile $id cos'è stringa o numero? Ricordati che gli id non devono iniziare per numero, forse il problema è li.