title: Query fails with "com.datastax.driver.core.exceptions.InvalidQueryException: String didn't validate."
body: <p>I have a table created like this:</p>
  
  <pre><code>CREATE TABLE messages (
  stream int,
  sequence int,
  timestamp bigint,
  message blob,
  PRIMARY KEY (stream, sequence)
  ) WITH gc_grace_seconds = 0;
  </code></pre>
  
  <p>Running the following query in CQLSH works perfectly fine:</p>
  
  <p><code>select * from messages where stream = 1 and sequence &gt;= 1 and sequence &lt;= 100;</code></p>
  
  <p>However, when I try to run the same via Java driver I get the following exception:</p>
  
  <pre><code>com.datastax.driver.core.exceptions.InvalidQueryException: String didn't validate.
          at com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:35)
          at com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:271)
          at com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:187)
          at com.datastax.driver.core.Session.execute(Session.java:126)
          at com.datastax.driver.core.Session.execute(Session.java:100)
  </code></pre>
  
  <p>I'm using parameterized querying API:</p>
  
  <pre><code>public final String FETCH_CQL = "select stream, sequence, timestamp, message "
              + "from messages where stream = ? and sequence &gt;= ? and sequence &lt;= ?";
  
  session.execute(FETCH_CQL, Integer.parseInt(stream), Integer.parseInt(fromSequence), Integer.parseInt(toSequence));
  </code></pre>
  
  <p>What gives? Overall setup works, as I have another query working on a different table.</p>
  
  <p>Thanks!</p>