The id is passed by parameter to my query function, but it fails to execute the query
this is my code:
objBD.query('SELECT u.ID_U, u.nombre, l.ID_L,letra, t.ID_T,tiempo from USUARIO u INNER JOIN LETRA l ON u.ID_U = l.ID_U INNER JOIN TIEMPOS t ON l.ID_L=t.ID_L where u.ID_U='+result.insertId', function(err, rows, fields) {
console.log(rows);
result.insertId is the id, my question is how to make a query with a parameter?