title: Wordpress MySQL query not working yet similar query works
body: <p>I have the follow line of code:</p>
  
  <pre><code>$wpdb-&gt;query("INSERT INTO wp_pi_tourmeta (tour_id, key, content) VALUES ('15', 'attachment', 'google')");
  </code></pre>
  
  <p>This doesn't work (or return an error) yet this line of code (right below it) works perfectly:</p>
  
  <pre><code>$wpdb-&gt;query("UPDATE wp_pi_tours SET group_name='$group_name', director_name='$director_name', travel_dates='$travel_dates', num_passengers='$num_passengers', country_origin='$country_origin', country_dest='$country_dest', price='$price', length='$length' WHERE tour_id = '$tour_id'");
  </code></pre>
  
  <p>I have also tried INSERT INTO into the pi_tours table and that works. My syntax looks fine. The only difference is the table name, and I didn't create the table with any differences to the other ones that work. I've even tried manually inputting data into it, which works. So what the hell is going on?!?!?!</p>