title: Filter sql results based on Timestamp
body: <p>I have the following CODE </p>
  
  <p><code>$thedate = "2018-06-04";  // YYYY-MM-DD</code></p>
  
  <pre><code>SELECT * 
  FROM (`leadactivity`) 
  WHERE statusdate = $thedate 
  ORDER BY id DESC 
  LIMIT 25
  </code></pre>
  
  <p>I am trying to only show the results where statusdate is = to the date provided. However because in sql the column autoupdates with Timestamp, it's including the time, and for some reason is just not giving any results.</p>
  
  <p>Any ideas on what I am doing wrong?</p>