I started to take a look at sql and I am pretty stuck on some basic things

. I wanted to try to make a simple login database for practice, but I couldn't get it to work at all. I used the SQL explorer and put in :
PHP Code:
CREATE TABLE 'login list' (
player TEXT
)
This worked great until I wanted to add information to it from an npc. Is it possible to do the following/if so what would I be doing wrong?
The script in the npc is -
http://pastebin.com/2s1HeB2L
(The forums were giving me an error so I just pasted the scripts on pastebin instead)