Error en la consulta: SELECT DISTINCT sn.id_nota AS id_nota,sn.titulo, sn.fecha_insert AS fecha,sn.url_amigable AS url_amigable,
sn.nota AS nota,sn.url_foto AS url_foto,sc.nombre AS categoria,sc.id_categoria
FROM prensa_notas sn
JOIN prensa_nota_categoria snc ON (sn.id_nota = snc.id_nota)
JOIN prensa_categoria sc ON (sc.id_categoria = snc.id_categoria)
WHERE sn.habilitado = 1 AND snc.id_categoria = 2 AND sn.id_municipio = ''.$id_municipio.'' GROUP BY sn.id_nota ORDER BY sn.fecha DESC LIMIT 3