I know that parametrized queries are used to prevent SQL injection, but how can this prevent an SQL injection?  Can't someone just set their id equal to ; DROP TABLE * -- and just insert that into the parametrized query anyway?
let updateQueryData = `UPDATE table SET lookups = $1 WHERE id = $2`;
        let updateQueryValues = [numLookups, data.rows[0].id];
        pool.query(updateQueryData, updateQueryValues, err => {
 
     
    