title: JPQL Statement Invalid unbound variable "serial_number" in query
body: <p>How can i make this work? I want to count serial number with a value of 1? Thanks guys i am a beginner.</p>
  
  <pre><code>serial_Number = 1;
  
  
  Query query = (Query) es.em.createQuery("SELECT COUNT(p.serial_Number) FROM Product p where p.product_Id = serials_Number");
  </code></pre>