Error en consulta: select * from contenido where id_subcategoria= and activo=1 and (desde<=curdate() or desde='0000-00-00') and (curdate()<=hasta or hasta='0000-00-00') and id_idioma='es'

Mensaje de 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 activo=1 and (desde<=curdate() or desde='0000-00-00') and (curdate()<=hasta ' at line 1

-------------------------------