Software error:

Can't execute SQL statement: 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 ff.tipo_moodle=1' at line 7

SELECT
dd.EVALUACION_3,ff.modulo_moodle
FROM
diagrama_ids_por_curso AS dd LEFT JOIN
diagrama_diccionario_campos AS ff ON ff.campo='EVALUACION_3'
WHERE
dd.idCursoMoodle =   and ff.tipo_moodle=1
		 at lib/mysql.pm line 64.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.