Error en la consulta:
SELECT i.img_nombre_p as IMAGE_P, i.img_nombre_g AS IMAGE_G FROM imagenes_noticias_es i WHERE i.noticia=
[1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]