I keep getting the error "Resource id #26" in PHP:
$R = mysql_query("SELECT * FROM Replies WHERE tid='$gS->ID' ORDER BY ID DESC LIMIT 1");
?>
<tr style="<? echo "$scss"; ?>">
<td width="560" class="thread" colspan="4" height="70" style="" border-left: 1px solid gainsboro;text-align: center;"><center><a href="./Post.php?id="><? echo "$gS->Title"; ?></center></a>
<td width="100" align="center" class="thread" style="text-align: center;" valign="middle"><? echo "$R"; ?></td>
<td width="100" align="center" class="thread" valign="middle"></td>
<td width="200" class="thread" style="border-right: 1px solid gainsboro;">by <? echo "$LastReply"; ?> <br>January, 1st, 2000 - 2:00am</td>
</tr>
</table>