$query="SELECT * from news_events where NE_Web='CRIDS' and NE_Type!='NEWSLETTER' order by NE_ID desc limit 1";
$result = mysqli_query($con, $query);
while($rows = mysqli_fetch_assoc($result))
{
?>
$query="SELECT * from news_events where NE_Status='1' and NE_Web='CRIDS' and NE_Type!='NEWSLETTER' order by NE_ID desc";
$result = mysqli_query($con, $query);
$count = mysqli_num_rows($result);
if($count == "0")
{
echo "