Noticias
Error: 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 visible=1 ORDER BY fecha DESC,id' at line 2
SELECT *,IF(fecha<>'0000-00-00',DATE_FORMAT(fecha,'%d/%m/%Y'),'') AS fecha_format
FROM noticias AND visible=1 ORDER BY fecha DESC,id