$sql = "INSERT INTO league(user,email,password,rival,key)
VALUES ('$this->user','$this->email','$this->pass','0','0')";
ошибка:
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 'key) VALUES ('user1','user1@gmail.com','usrpsw','0','0')' at line 1
поле key int(11) NULL(no) DEFAULT 0