query_posts adding two “post-entry” divs

Something like this?..

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>">

        <?php if ( has_post_thumbnail()) { ?>

          <div class="post-thumb">
            <?php the_post_thumbnail(); ?>
          </div>
          <div class="post-entry-1">
              <?php the_excerpt(); ?>
          </div>

        <? } else { ?>

          <div class="post-entry-2">
              <?php the_excerpt(); ?>
          </div>

        <?php } ?>

    </div>

    <?php endwhile; ?>

<?php else: ?>

    <p class="no-data">
        <?php _e( 'Apologies, but no results were found.' ); ?>
    </p>

<?php endif; ?>

error code: 523