title: MYSQL query very slow using PHP but fast in phpMyAdmin and Command Line
body: <p>I don't understand why MYSQL query takes more time in PHP script but takes less time in phpMyAdmin </p>
  
  <p>Query : </p>
  
  <pre><code>SELECT `id`, `title`, `slug`, `price`, `image`, `seller` FROM (`products`) WHERE `price` &gt;= '0' AND `price` &lt;= '2000' AND `cp_price` != '0' AND `category` LIKE '%,2,%' ORDER BY `id` DESC LIMIT 20, 20
  </code></pre>
  
  <p><strong>phpMyAdmin time : 0.00 sec</strong></p>
  
  <p><strong>php script time : around 8-12 sec</strong></p>