title: Android search contacts by phone number and contact name (Both in same time)
body: <p>I want to query on contacts by phone number and contact name in same time with "LIKE" operator, here is my code : </p>
  
  <pre><code>    ContentResolver contentResolver = context.getContentResolver();
      Cursor cursor = contentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.Contacts.HAS_PHONE_NUMBER + "=1 AND (" + ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + " LIKE '" + query + "%' OR " + ContactsContract.CommonDataKinds.Phone.NUMBER + " LIKE '%" + query + "%' OR " + ContactsContract.CommonDataKinds.Phone.NUMBER + " LIKE '%" + query + "%' ) ", null, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME + " ASC");
      return cursor;
  </code></pre>
  
  <p>But my code does not work, it's crashes and android says "data4" and "data1" column does not exist.</p>