title: iOS How to search data at the few Data table Parse swift 4
body: <p>I have search module, which connected to the parse.</p>
  
  <p>And i want to make searching from few data table base.</p>
  
  <p>For searching i use next code:</p>
  
  <pre><code>var searchResult = [String]()
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return searchResult.count
  }
  
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
  
      cell.textLabel?.text = searchResult[indexPath.row]
  
  
      return cell
  }
  </code></pre>
  
  <p>For searching bar this code:</p>
  
  <pre><code> func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
      searchBar.resignFirstResponder()
  
      let firstQuery = PFQuery(className: "fried")
      firstQuery.whereKey("best", contains: searchBar.text)
  
      let seccondQuery = PFQuery(className: "home")
      seccondQuery.whereKey("home", contains: searchBar.text)
  
      let query = PFQuery.orQuery(withSubqueries: [firstQuery,seccondQuery])
      query.findObjectsInBackground { (result, error) in
          if let objects = result {
              self.searchResult.removeAll(keepingCapacity: false)
  
              for object in objects {
                  let question = object.object(forKey: "question") as! String
                  let answer = object.object(forKey: "answer1") as! String
                  let test = question + " " + answer
  
                  self.searchResult.append(test)
              }
  
              DispatchQueue.main.async {
                  self.tableView.reloadData()
                  self.resignFirstResponder()
              }
  
          }
      }
  
  }
  </code></pre>
  
  <p>And i got this type of error:</p>
  
  <blockquote>
    <p>reason: 'All sub queries of an <code>or</code> query should be on the same class.'</p>
  </blockquote>
  
  <p>It's possible to make searching at the few data base?</p>