The print $content statement in node.tpl.php is causing my whole layout to break probably due to incorrect nesting of DIVs.

I want to check and fix that but I can't figure out what/where is the source of the $content variable in node.tpl.php file.

I'd appreciate any help. Thanks.