title: querying on where association in sequelize?
body: <p><code>where</code> clause use in sequelize in inner joins.
  My query is</p>
  
  <pre><code>SELECT Cou.country_id,cou.country_name, Sta.state_id, Sta.state_name
  FROM hp_country Cou
  INNER JOIN hp_state Sta ON Cou.country_id = Sta.hp_country_id
  WHERE (Cou.country_status=1 AND Sta.state_status=1 AND Cou.country_id=1)
  AND (Sta.state_name LIKE '%ta%');
  </code></pre>
  
  <p>I wrote in sequelize code is</p>
  
  <pre><code>hp_country.findAll({
      where: {
          '$hp_state.state_status$': 1
      },
      include: [
          {model: hp_state}
      ]
  })
  </code></pre>
  
  <p>The error it's producing is:</p>
  
  <pre><code>SELECT `hp_country`.`country_id`, `hp_country`.`country_name`, `hp_country`.`country_status`, `hp_country`.`created_date`, `hp_country`.`update_date` FROM `hp_country` AS `hp_country` WHERE `hp_state`.`state_status` = 1;
  Unhandled rejection SequelizeDatabaseError: ER_BAD_FIELD_ERROR: Unknown column 'hp_state.state_status' in 'where clause'
  </code></pre>