select n.Noticia,n.Volanta,n.Titulo,n.Permalink,n.Copete,n.Ubicacion,f.Fotografia,n.Seccion from noticias n
left join fotografias f on f.Publicacion = n.Publicacion and f.Edicion = n.Edicion and f.noticia = n.noticia and f.Entapa = 1
where n.Publicacion = 0 and n.Edicion = 1 and ((n.Sector = 0 and n.Ubicacion > 3) or n.Sector = 1) and n.Seccion in () and
n.Categoria <> 25 and TIMESTAMPDIFF(MINUTE,cast(CONCAT(n.Fecha,' ',n.Hora) as datetime),now()) <= 3*24*60
order by n.Seccion, n.Ubicacion, n.Noticia Desc