title: How to give limit in mysql query in random
body: <p>I have a select query in mysql . On each execution of this query I need different amount of data, between 10 and 30 entries.</p>
  
  <p>I tried with following code :</p>
  
  <pre><code>'SELECT * FROM user where status='0' LIMIT 10,30'
  </code></pre>
  
  <p>But it's always giving result of limit 30.</p>
  
  <p>How can i execute it?</p>