title: how to delete automatic date if more than 5 minutes using codeigniter
body: <blockquote>
    <p>how to delete automatic date if more than 5 minutes</p>
  </blockquote>
  
  <pre><code>$time = 1; 
          $deletetoken = "DELETE FROM log aa LEFT JOIN user bb ON aa.`email`=bb.`email` 
                      WHERE aa.`code_aktivasi`='code_aktivasi' 
                      DATEDIFF(CURDATE(), create_at)-&gt; $time";
          $run = mysql_query($deletetoken);
  </code></pre>
  
  <p>I want automatic date if more than 5 minutes, 
  But it is not working, what might be happening?</p>