Código PHP:
<?php
include ("conexion.php");
$var=htmlentities($_GET['noticia']);
mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'");
$a = mysql_query("select * from posteo where id='".$var."'", $db);
$varrr=htmlentities($_GET['noticia']);
?>
Saludos! :)