Otra forma es usando la función in_array():
Código PHP:
$mostrar = array();
$no_mostrar = array(1,4,8);
while($datos = mysql_fetch_assoc($query)) {
if(count($mostrar) < 10) {
if(!in_array($datos['noticia_id'], $no_mostrar)) $mostrar[] = $datos;
} else break;
}
//print_r($mostrar);
Referencias: - http://www.php.net/inarray
Un saludo,