title: "Column count doesn't match value count at row" but it does
body: <p>I've got a mysql file with over than 14000 statements.
  All of them are inserts into a table, and when I import the file using console, it throws the following error:</p>
  
  <pre><code>ERROR 1136 (21S01) at line 1548: Column count doesn't match value count at row 45
  </code></pre>
  
  <p>I know that error appears when the rows specified in column names are different from the rows specified in VALUES list, but I've checked it out many times and the number of columns is exactly the same in both lists.</p>
  
  <p>The row in position 45 is:</p>
  
  <pre><code>('00553', 'AAA', 'BBB', 'CCC', 'XXXXXXXXR', 'user address', 'spain', 'spain', '39212', '1900-01-21', '123456789', 'M', 'No disponible', 0, 'AAA', 'BBB ', 'CCC', 'XXXXXXXXR', NULL, '888993344', '', '', '', '', 'no', 'no') --&gt; 26 columns
  </code></pre>
  
  <p>and the insert line associated with it, many lines above is:</p>
  
  <pre><code>INSERT INTO `users` (`id_patient`, `name`, `surname1`, `surname2`, `dni`, `address`, `city`, `state`, `postal_code`, `birthday`, `telephone`, `sex`, `email`, `lopd_status`, `lopd_name`, `lopd_surname1`, `lopd_surname2`, `lopd_dni`, `lopd_as`, `mobile_phone`, `notes`, `job`, `company`, `place`, `active_citation`, `signature`)  --&gt; 26 columns
  </code></pre>
  
  <p>I've looked for this error but it seems it only appears when count is different, but in this case, it is the same.</p>
  
  <p>Any idea?</p>
  
  <p>EDIT: forgot to mention: if I throw the sql statement directly on phpmyadmin, it adds the line correctly without any errors. It only crashes when run from command line, although the statements above it are correctly inserted into database and they are almost the same than this one.</p>
  
  <p>EDIT2: I've removed all lines until the 46 and when I launch the file the erros is the following:</p>
  
  <pre><code>ERROR 1136 (21S01) at line 1503: Column count doesn't match value count at row 45
  </code></pre>
  
  <p>It only changes the line, but that line is the INSERT statement, which is exactly the same as the other INSERT statements in the rest of the file. The previos line is also correct.</p>