title: Knex error using where clause in joins
body: <p>I am using the following query:</p>
  
  <pre><code>const all = (context, merchantId) =&gt; {
  
    return knex(TABLE)
      .join('address', 'address.id', '=', 'hotel.id')
      .select(
          'hotel.id', 'hotel.name', 'hotel.description', 'hotel.thumbnail',
          'address.city', 'address.state', 'address.country')
      .where('merchant_id', merchantId)
      .then(rows =&gt; {
        return rows;
      });
  };
  </code></pre>
  
  <p>But getting error:</p>
  
  <pre><code>Error: Undefined binding(s) detected when compiling SELECT query: select `hotel`.`id`, `hotel`.`name`, `hotel`.`description`, `hotel`.`thumbnail`, `address`.`city`, `address`.`state`, `address`.`country` from `hotel` inner join `address` on `address`.`id` = `hotel`.`id` where `merchant_id` = ?
  </code></pre>
  
  <p>What I am missing?</p>