title: is this loop correct? sometimes it displays extra content (wordpress)
body: <p>I've put together this little loop to display upcoming 4 events from the calendar.</p>
  
  <p>I placed it in sidebar.</p>
  
  <p>On archive page it behaves normally.</p>
  
  <p>But on single post page it goes crazy, and loads 4 events + reloads everything on the page like second sidebar second post and second right sidebar...</p>
  
  <p>Commenting out query stops this insane behavior. So no I didn't make stupid copy paste mistake :)</p>
  
  <pre><code>                    &lt;ul class="sidebarlists"&gt;
                          &lt;li&gt;
                          &lt;h2&gt;Upcoming Events&lt;/h2&gt;
                          &lt;span class="seeallside"&gt;&lt;a href="http://localhost/wordpress/events/"&gt;See All&lt;/a&gt;&lt;/span&gt;
  
                              &lt;?php
                                  $postslist = query_posts('order=DESC&amp;orderby=modified&amp;posts_per_page=4&amp;post_type=tribe_events&amp;eventDisplay=upcoming'); 
  
                                  echo "&lt;ul&gt;";
  
                                  foreach ($postslist as $loopID =&gt; $p) {
                                     echo "&lt;li&gt;";
                                     echo "&lt;a title='". $p-&gt;post_title . "' href='" . get_permalink($p-&gt;ID) . "'&gt;".get_the_post_thumbnail( $p-&gt;ID, array( 50,50, 'class' =&gt; ' sidebarthumb '))."&lt;/a&gt;";
                                     echo "&lt;h3&gt;&lt;a title='". $p-&gt;post_title  . "' href='" . get_permalink($p-&gt;ID) . "'&gt;".$p-&gt;post_title."&lt;/a&gt;&lt;/h3&gt;";
                                     echo "&lt;span&gt;".tribe_get_start_date( $p-&gt;ID, true, 'D. M j, Y' )."&lt;/span&gt;";
                                     echo " &lt;div class=\"clearfloat\"&gt;&lt;/div&gt;";
                                     echo "&lt;/li&gt;";
                                  }
  
                                  echo "&lt;/ul&gt;";      
                              ?&gt;
  
                          &lt;/li&gt;
                      &lt;!-- End #sidebarlists --&gt;&lt;/ul&gt;
  </code></pre>