title: You have an issue in your SQL syntax but don't know the cause
body: <pre><code>INSERT INTO tkblue_tklabel_dev_archdata.EmailContent2016
  (
      SELECT tkblue_tklabel_dev_data.EmailContent.*
      FROM tkblue_tklabel_dev_data.EmailContent
      LEFT JOIN tkblue_tklabel_dev_archdata.EmailTracking ON tkblue_tklabel_dev_archdata.EmailTracking.id = tkblue_tklabel_dev_data.EmailContent.idEmailParam
      WHERE (tkblue_tklabel_dev_archdata.EmailTracking.EmailDate &lt;= "2016-12-31 23:59:59" and tkblue_tklabel_dev_archdata.EmailTracking.EmailDate &gt;= "2016-01-01 00:00:00"); 
  );
  </code></pre>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that
    corresponds to your MariaDB server version for the right syntax to use
    near '' at line 6</p>
  </blockquote>
  
  <p>I don't succeded to find the reason of this error. </p>