title: java.sql.SQLSyntaxErrorException: Syntaxfehler: Encountered ":"
body: <p>I got <strong>SQLSyntaxErrorException</strong>.</p>
  
  <p>Here a short extract of the error trace.</p>
  
  <pre><code>Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.1.v20130918-f2b9fc5): org.eclipse.persistence.exceptions.DatabaseException
  Internal Exception: java.sql.SQLSyntaxErrorException: Syntaxfehler: Encountered ":" at line 1, column 40.
  Error Code: 20000
  Call: select * from book where price between :min59 and :max59
  Query: ReadAllQuery(referenceClass=Book sql="select * from book where price between :min59 and :max59")
  </code></pre>
  
  <p>I called </p>
  
  <pre><code>createNativeQuery("select * from book where price between :min59 and :max59", Book.class)
  </code></pre>
  
  <p>Then I set the two parameter with </p>
  
  <pre><code>query.setParameter("min59", 20.0); query.setParameter("max59", 30.0);
  </code></pre>
  
  <p>The exception occurs during </p>
  
  <pre><code>query.getResultList();
  </code></pre>
  
  <p>Environment:</p>
  
  <ul>
  <li>EclipseLink 2.5.1</li>
  <li>Apache Derby 10.X</li>
  </ul>
  
  <p>Any ideas what's wrong?</p>