l'errore è nell'sql oppure nel codice php?