1. perché un problema di database viene posto in un forum php?
2. SUM() ritorna ovviamente un numero, riformattatelo tu