DESC is a MySQL keyword. Try escaping it with tick-marks, i.e. `desc`
One other thing, integers shouldn't be escaped with quotes. So the whole query
INSERT INTO logins(accountid, userid, `desc`) values(9, 24, 'testing')
However, if I were you I'd choose a different name for your desc field, because
it's only going to get confusing or cause hidden errors later down the line.