title: MySQL Log of invalid Queries
body: <p>I AM NOT RUNNING THE COMMANDS FROM PHP!</p>
  
  <p>I have MySQL log_error value set to /var/log/mysql/error.log</p>
  
  <p>However when I connect to a database and run an SQL command, the error does not appear in the log.</p>
  
  <pre><code>
  SELECT * 
  FROM some_table
  where this_is_invalid_and_will_fail="Doesn't matter because column doesn't exist!";
  </code></pre>
  
  <p>There are commands running from some sort of windows application. All I want to know is what invalid commands its sending to the MySQL server so that I can attempt to resolve them.</p>