title: Error: Incorrect arguments to mysqld_stmt_execute
body: <p>I am working on a nodeJs project and using a npm package <strong>mysql2</strong> for mysql database.</p>
  <p>My MySql Configuration:-</p>
  <pre><code>let mysql = MYSQL.createConnection({
    host: `${config.mysql.host}`,
    user: `${config.mysql.user}`,
    password: `${config.mysql.password}`,
    database: `${config.mysql.db}`,
  });
  </code></pre>
  <p>When I am using a query</p>
  <pre><code>async function getUsers ({pageNumber}) { // suppose pageNumber = 1
    const [result] = await mysql.execute(
     `SELECT * FROM user LIMIT ?,20;`,
      [pageNumber]
    );
    return result;
  }
  </code></pre>
  <p>The above code is working fine. But when i am trying to multiply any number with pageNumber,it throws error <strong>Error: Incorrect arguments to mysqld_stmt_execute</strong></p>
  <p>Ex.</p>
  <pre><code>async function getUsers ({pageNumber}) { // suppose pageNumber = 1
    pageNumber = pageNumber * 20; // here we multiply 20 with pageNumber (20 is the row limit)
    const [result] = await mysql.execute(
     `SELECT * FROM user LIMIT ?,20;`,
      [pageNumber]
    );
    return result;
  }
  </code></pre>
  <p>above code throws the error.</p>
  <p>Note:- type of pageNumber is number not string.</p>
  <p>Please help.</p>