title: How to query all lists that use a certain content type in SharePoint?
body: <p>I have the following CAML query:</p>
  
  <pre><code>   &lt;Where&gt;
        &lt;And&gt;
           &lt;Eq&gt;
              &lt;FieldRef Name='PublishToSM' /&gt;
              &lt;Value Type='Boolean'&gt;True&lt;/Value&gt;
           &lt;/Eq&gt;
           &lt;IsNull&gt;
              &lt;FieldRef Name='SMUpdateDate' /&gt;
           &lt;/IsNull&gt;
        &lt;/And&gt;
     &lt;/Where&gt;
  </code></pre>
  
  <p>I have only one content type that uses these fields.  When I run this query against a list that uses this content type everything works fine.  When I run it against a List that does not it throws the error:  <code>One or more field types are not installed properly. Go to the list settings page to delete these fields.</code></p>
  
  <p>I would like to be able to search all Lists on all websites in a site collection.  Can this be done without erroring out?</p>