title: Wpdb update via $wpdb->query() not working
body: <p>I'm trying to make a wordpress plugin and i came over a problem. </p>
  
  <p>The problem is with an update query which i can't figure out why it isn't working. The query should update a non wordpress table</p>
  
  <pre><code>global $wpdb;
  $sql ="UPDATE $lmdisp_table_name
              SET `".$lmdisp_nume."`=".$nume.",
                  `".$lmdisp_departament."` = ".$dep.",
                  `".$lmdisp_an."` = ".$an.",
                  `".$lmdisp_grupaserie."` = ".$grupa.",
                  `".$lmdisp_tel."` = ".$tel."' ,
                  `".$lmdisp_email."` = ".$email.",
                  `".$lmdisp_fb."` = ".$fb.",
                  `".$lmdisp_tw."` = ".$tw.",
                  `".$lmdisp_linked."` = ".$linked.",
                  `".$lmdisp_freel."` = ".$freel.",
                  `".$lmdisp_blog."` = ".$blog.",
                  `".$lmdisp_memyear."` = ".$memyear.",
                  `".$lmdisp_fctlse."` = ".$fct.",
                  `".$lmdisp_evlse."` = ".$evlse.",
                  `".$lmdisp_skills."` = ".$skills.",
                  `".$lmdisp_avatar."` = ".$avatar.",
                  `".$lmdisp_cv."` = ".$cv."
             WHERE  `".$lmdisp_id."` = ".$id."";
  
      $rez = $wpdb-&gt;query($sql);
  </code></pre>
  
  <p>A little help ?:(</p>