Classe functions SafetyControl: Erro na Execução

Hora do Erro: Friday 30th 2020f October 2020 04:01:23 PM
Última Query: SELECT * FROM Imagens WHERE ImaProduto = AND ImaStatus = 'A' ORDER BY ImaCodigo ASC LIMIT 1
Erro do Mysql: 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 ImaStatus = 'A' ORDER BY ImaCodigo ASC LIMIT 1' at line 1
Nmero de Erro: 1064