$strSQL1 = "SELECT * FROM mem_posts
WHERE topic_id AND cat_id = 2 ORDER BY post_id DESC limit 10";
$objQuery1 = mysql_query($strSQL1) or die ("Error Query [".$strSQL1."]");
while($objResult1 = mysql_fetch_array($objQuery1))
{
echo "<a href=\"./viewforum.php?f=$objResult1[forum_id]\" target=\"_blank\">$objResult1[forum_name]</a>";
}