title: Two equalTo in parse.com javascript
body: <p>I'm trying to set two <code>equalTo</code> in pares.com javascript.
  So the code below, in the function i get the idEvent from another function
  and i have a certain idTypeImageEvent that i want also to check if both are true
  To bring me the image. The code below doesnt bring me any image and i think that i cant put 2 <code>equalTo</code> before one <code>find()</code> function</p>
  
  <pre><code>function imageTouEvent(eventid) {
      var Event = Parse.Object.extend("Event");
      var eventaki = new Event();
      eventaki.id = eventid;
      var imageEvent = Parse.Object.extend("imageEvent");
      var eikona = new imageEvent();
      eikona.id = "vPdWjmYs2G";
      var queryImageEvent = new Parse.Query(imageEvent);
      queryImageEvent.equalTo("idEvent", eventaki);
      queryImageEvent.equalTo("idTypeImageEvent", eikona);
      queryImageEvent.find({
          success: function(results) {
              for (var i = 0; i &lt; results.length; i++) {
                  console.log("mphke");
                  var objectImage = results[i];
                  var img = document.createElement("IMG");
                  img.setAttribute("src", objectImage.get('galleryImageEvent').url());
                  img.setAttribute("width", "200");
                  img.setAttribute("height", "200");
                  img.setAttribute("alt", "The Pulpit Rock");
                  document.getElementById('conteiner').appendChild(img);
              }
          },
          error: function(error) {
              alert("Error: " + error.code + " " + error.message);
          }
      });
  }
  </code></pre>
  
  <p>What is your opinion about the above code? What should i change in it so it can work???
  I have tried also</p>
  
  <pre><code>queryImageEvent.select("idTypeImageEvent", eikona);
  
  queryImageEvent.equalTo("idTypeImageEvent", eikona);
  </code></pre>
  
  <p>But nothing worked.
  In the image below i explain better
  I have the idEvent (1) and as you can see i want only to bring a certain (2) idTypeImageEvent and then print the image.
  <a href="https://i.stack.imgur.com/60UIo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/60UIo.jpg" alt="enter image description here"></a></p>