Ho provato a prendere l'idutente dalla sessione e con questo fatto la selezione da database ma mi da questo errore:

Errore 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 ''' at line 1

Cosa significa?