select *, titulo as titulo,
if (firma_como_ai>0, (select nombre from cms_blogs where id_blog=firma_como_ai limit 1), autor ) as autor,
if (firma_como_ai_2>0, (select nombre from cms_blogs where id_blog=firma_como_ai_2 limit 1) , autor_2 ) as autor_2,
if (firma_como_ai_3>0, (select nombre from cms_blogs where id_blog=firma_como_ai_3 limit 1) , autor_3 ) as autor_3,
friendly_url, friendly_url_categoria, (select nombre from cms_portadas_edicionv2 where id_portada_edicion = cms_articulos.id_categoria) as edicion from cms_articulos where supervisado=1 and (visible_en_periodico in ('', '') or (supervisado=1 and visible_en_periodico in ('P', ''))) and id_articulo not in(10096508,10093125,10095831,10095690,10096089,10095937,10096438,10096301,10096752,10095566,10094803,10091304,10094213,10093581,10095323,10095997,10094280,10093092,10093724,10092821,10090552,10088697,10094127,10094009,10093966,10093568,10093408,10093716,10092120,10092409) and id_periodico = and (find_in_set('imperdibles', tags)) order by fecha desc LIMIT 8 - 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 'and (find_in_set('imperdibles', tags)) order by fecha desc LIMIT 8' at line 5
