connection.query('SELECT * FROM usernames WHERE login =? AND password =? LIMIT 1', [autorization.login, autorization.password], function(err,res){ if(err) throw err; console.log('name:', res.name); });