title: SQL Delete Query After 150 Minutes In Wordpress
body: <p>I try to delete posts where post contains "iframe" string and older than 150 minutes. However, it deletes all contents even added just 1 minutes ago. There is a problem with second condition of WHERE part. I couldn't solve it. Where is the problem, do you have any idea?</p>
  
  <pre><code>$delete = mysql_query("DELETE FROM wp_posts WHERE post_content like '%iframe%' AND post_date_gmt &lt; (NOW() - INTERVAL 150 MINUTE)");
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2gyVk.png" rel="nofollow noreferrer">Screenshot of the wp_post</a></p>