Problema en MySQL: 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 ') ORDER BY fecha DESC LIMIT 0,30' at line 2 en la consulta SELECT * FROM bitacoras AS B INNER JOIN anotaciones AS A FORCE INDEX (fecha) ON ( WHERE A.publicado AND estado=2 AND NOT IN () ORDER BY fecha DESC LIMIT 0,30