title: metaquery having same metakey with multiple value
body: <p>I want to show the records which are having  <code>"modelyear
  between 2003 to 2006  and   modelyear between 2007 to 2009  AND  price
  between 1 lakh to 3 lakh  and   price  between 3 lakh  to 5 lakh"</code> MEANS records having modelyear between 2003 to 2009 and price between 1 lakh to 5 lakh like in jabong.com narrow search.</p>
  
  <p>I used the following (<em>see below</em>). But it's not working. </p>
  
  <p>Could someone suggested, how to solve it in <strong>wordpress meta query</strong>? Please!</p>
  
  <pre><code>&lt;?php 
  $args2=array(
  'posts_per_page' =&gt; 100,
  'post_type' =&gt; 'product',
  'post_status' =&gt; 'publish',
  'meta_query' =&gt; array(
  'relation' =&gt; 'AND',
  array(
  'key' =&gt; 'year',
  'value' =&gt; array(2003, 2006),
  'compare' =&gt; 'BETWEEN',
  //'type' =&gt; 'DECIMAL',
  ),
  array(
  'key' =&gt; 'year',
  'value' =&gt; array(2007, 2009),
  'compare' =&gt; 'BETWEEN',
  //'type' =&gt; 'DECIMAL',
  ),
  
  
  array(
  'key' =&gt; '_price',
  'value' =&gt; array(1, 3),
  'compare' =&gt; 'BETWEEN',
  //'type' =&gt; 'DECIMAL',
  ),
  array(
  'key' =&gt; '_price',
  'value' =&gt; array(3, 5),
  'compare' =&gt; 'BETWEEN',
  //'type' =&gt; 'DECIMAL',
  ),
  
  ),
  );
  ?&gt;
  </code></pre>