why won't my second table show?



<?php


$query = "SELECT * FROM $var1 where $var2 like '$var3'";

$innhold = mysql_query($query) or die("SELECT query failed");


echo "<table border=\"1\">";
while($a_row = mysql_fetch_array($innhold))
{
echo "<tr>";
echo "<td>". $a_row[$var4] ."</td>";
echo "<td>". $a_row[$var2] ."</td>";
echo "<td>". $a_row[$var5] ."</td>";
echo "</tr>";
}
echo "</table>";

$query2 = "SELECT * FROM $var6 where $var7 like 'var8'";

$innhold2 = mysql_query($query2) or die("SELECT query failed");


echo "<table border=\"1\">";
while($b_row = mysql_fetch_array($innhold2))
{
echo "<tr>";
echo "<td>". $b_row[$var9] ."</td>";
echo "<td>". $b_row[$var7] ."</td>";
echo "<td>". $b_row[$var10] ."</td>";
echo "<td>". $b_row[$var11] ."</td>";
echo "</tr>";
}
echo "</table>";
?>