title: Error Code: 1292. Truncated incorrect time value
body: <pre><code>SELECT *
  FROM SESSIONS
  WHERE TIME_TO_SEC(TIMEDIFF(NOW(), SESSION_CREATED)) / 3600 &gt;= 24
  </code></pre>
  
  <p>This give me 2 results</p>
  
  <pre><code>DELETE FROM SESSIONS
  WHERE TIME_TO_SEC(TIMEDIFF(NOW(), SESSION_CREATED)) / 3600 &gt;= 24
  </code></pre>
  
  <p>And this give me: "Error Code: 1292. Truncated incorrect time value"</p>
  
  <p>SESSION_CREATED is TIMESTAMP Datatype</p>
  
  <p>Actual data:</p>
  
  <pre><code>SESSION_ID      SESSION_CREATED
  223133          2017-05-22 07:14:34
  223134          2017-05-22 07:14:36
  </code></pre>
  
  <p>How can the select work but not the delete?</p>