require ('conexion.php');
require ('funciones.php');
$sqlNOtis="SELECT * FROM noticias
inner join secciones on (not_sec_id=sec_id)
left join imagenes on (not_id=img_not_id)
where not_sec_id=1 and not_dest_id='1' and not_ubi_id='4'
group by not_id
ORDER BY not_fecha DESC, not_id desc limit 4";
$resNOtis=mysql_query($sqlNOtis);
$SQLquery1 = "SELECT * FROM noticias
inner join secciones on (not_sec_id=sec_id)
left join imagenes on (not_id=img_not_id)
where not_ubi_id=2 and not_dest_id=1
order by not_id desc";
$SQLresult1 = mysql_query($SQLquery1);
$SQLubi1 = mysql_fetch_array($SQLresult1);
$SQLqueryPa = "SELECT * FROM noticias
where not_ubi_id=6
";
$SQLresultPa = mysql_query($SQLqueryPa);
$SQLubiParticipe = mysql_fetch_array($SQLresultPa);
?>