Why isn't there any output?
Please confirm you got any value from arg(2) which is equivalent to term id(tid) .

Try this code

$result = db_select('taxonomy_index', 't')
  -&gt;fields('t')
  -&gt;condition('tid', arg(2), '=')
  -&gt;execute()
  -&gt;fetchAssoc();

$node = node_load($result-&gt;nid);

print_r($node);