title: Strange error with Prepared query is not of type SELECT_LONG
body: <p>I want to ask how can I make queries for this. I want to check the name from edit text and if the name exsist, as a part of record, in db i want to fill all edit texts with data from this object. Also I've got very strange error. Please help or give me an advice how to start with it. Im beginner. Thanks for all answers and clues. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>if(et_nazwa!=null){
  
  
               long value = 0;
              try {
                  PreparedQuery&lt;Klient&gt; query = klientDao.queryBuilder()
                          .where().eq("Kli_nazwa",et_nazwa.getText().toString()).prepare();
                  value = klientDao.countOf(query);
              } catch (java.sql.SQLException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  
                  try {
                      if(value!=0){
  
                      PreparedQuery&lt;Klient&gt; q_adres = klientDao.queryBuilder().selectColumns("Kli_adres").where().eq("Kli_nazwa",et_nazwa.getText().toString()).prepare();
                      PreparedQuery&lt;Klient&gt; q_nip = klientDao.queryBuilder().selectColumns("Kli_nip").where().eq("Kli_nazwa",et_nazwa.getText().toString()).prepare();
  
                      et_adres.setText(q_adres.toString());
                      et_nip.setText(q_nip.toString());
                      }
                  } catch (java.sql.SQLException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
              }
  </code></pre>
  
  <p>And I've got this strange error like: </p>
  
  <pre><code>java.lang.IllegalArgumentException: Prepared query is not of type SELECT_LONG, did you call QueryBuilder.setCountOf(true)?
  </code></pre>