When I execute the following SQL command:
INSERT INTO test_usershosts (RID,userid,hid,Usr,Pass) VALUES (NULL,1,1,\"user\",\"pass\");
I\'m
In test_users guest's UserID is 1120 and in test_hosts hid = 30
test_users
UserID
1120
test_hosts
you must change
INSERT INTO test_usershosts (RID,userid,hid,Usr,Pass) VALUES (NULL,1,1,"user","pass");
to:
INSERT INTO test_usershosts (RID,userid,hid,Usr,Pass) VALUES (NULL,1120,30,"user","pass");