So I am currently trying to make a query in Node.js:
// friends is an array object
db.all(\'SELECT email \' +
\'FROM users\' +
\'WHERE email in ?\'
db.all('SELECT email ' +
'FROM users' +
'WHERE email in ( ' + friends.map(function(){ return '?' }).join(',') + ' )',
friends,
function(err, rows) {
if (!err) {
Slight variation on asbel's great answer:
db.all(
`SELECT email FROM users WHERE email in (${ friends.fill('?') })`,
friends,
callback
);