render($page['content']) in the wrong place! Ok I'm having this really weird problem with my Drupal 7 site. I have edited my page.tpl.php file. Following is the html where this oddity occurs

&lt;table class="main_content"&gt;
&lt;tr&gt;
    &lt;td&gt;
        &lt;div class="left_main"&gt;
            &lt;div class="main_title"&gt;
                 &lt;h2 class="centerBoxHeading"&gt;&lt;?php echo $title; ?&gt;&lt;/h2&gt;

            &lt;/div&gt;
            &lt;?php print render($page['content']); ?&gt;
        &lt;/div&gt;
    &lt;/td&gt;
    &lt;td&gt;
        &lt;table&gt;
               &lt;tr&gt;
                   &lt;td&gt;
                       &lt;div class="right_main"&gt;
                           &lt;div class="main_title"&gt;
                                &lt;h2 class="centerBoxHeading"&gt;Bestselling&lt;/h2&gt;
                           &lt;/div&gt;
                           &lt;?php print render($page['right']['views_bestsellers-block']); ?&gt;
                       &lt;/div&gt;
                   &lt;/td&gt;
               &lt;/tr&gt;
               &lt;tr&gt;
               &lt;td&gt;
                   &lt;div class="other_blocks_right"&gt;
                       &lt;div class="main_title"&gt;
                           &lt;h2 class="centerBoxHeading"&gt;Poll&lt;/h2&gt;
                       &lt;/div&gt;
                       &lt;?php print render($page['right']['poll_blocks_11']); ?&gt;
                   &lt;/div&gt;&lt;/td&gt;
               &lt;/tr&gt;
        &lt;/table&gt;
   &lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;


So far everything looks fine. But when opened in the browser print render($page['content']); prints outside the table before it! I have checked this through firebug.

I have also edited a node.tpl.php file and everything is fine inside it.

Can anyone suggest what is going on?
The content in my node.tpl.php was wrapped in a tr tag. Don't know how it got there. When I removed it everything was fine.