title: SQL syntax error INNER JOIN
body: <p>I'm trying to run this sql query and keeps getting this error:</p>
  
  <blockquote>
    <p>You have an error in your SQL syntax; check the manual that
    corresponds to your MySQL server version for the right syntax to use
    near 'INNER JOIN wp_posts ON wp_postmeta.post_id = wp_posts.ID WHERE
    wp_posts.post_typ' at line 3 (Line 4)</p>
  </blockquote>
  
  <p>My sql query is this:</p>
  
  <pre><code>UPDATE wp_postmeta
  SET meta_value = "1316"
  INNER JOIN wp_posts ON wp_postmeta.post_id = wp_posts.ID
  WHERE wp_posts.post_type="imagen_dia" AND wp_postmeta.meta_key="ae_post_template"
  </code></pre>
  
  <p>Any help please?</p>