Display posts below child categories on custom taxonomy.

Hi im creating a custom tax called materials, the setup should be like this

Parent Category 1 title

Child category 1
- (1st post inside category title+content)
- (2nd post inside category title+content)
- (3rd post inside category title+content)

Child category 2
- (1st post inside category title+content)
- (2nd post inside category title+content)
- (3rd post inside category title+content)

You can see it here, http://englishmilestones.com/material/introduction/

the problem is even the posts from another category is showing up here, all of the other categories are showing up on this parent can you check what did i do wrong on my custom query?

<?php
$taxonomy = 'material';
// Gets every "category" (term) in this taxonomy to get the respective posts<table>
$terms = get_terms( $taxonomy,'orderby=id&order=ASC' );
foreach( $terms as $term ) :
  echo '<h3 class="lessonhead" id="'. $term->name. '">'. $term->name. '</h3>';
  if ( $term->parent == 0 ) continue;

  // rest of your code here

  $resourcequery = new WP_Query(array(
  'hide_empty' => 1,
    'post_type' => 'lesson',
    'taxonomy' => $taxonomy,
    'term' => $term->slug,
    'order' => 'ASC',
	'posts_per_page' => -1

    ));

if( $resourcequery->have_posts() ): while( $resourcequery->have_posts() ) : $resourcequery->the_post();
?>

<div id="lessonholder">
  <div class="lessontitle"><?php the_title(); ?></div>
  <div class="lessoncontent"><?php the_content(); ?></div>
</div>

        <?php endwhile; ?>
		<!--/table-->

        <?php else :
        echo 'No Posts for '.$cat->name;
        endif; 

    endforeach;
	?>
	</div>