depois de ter feito a alteração q vc tinha falado, apareceu assim:
' You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM * WHERE cadastro id=''' at line 1
oq será?