A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

select * from carpetas where clave1=1 and clave2=1 and clave3=1 and clave4=

Filename: models/Imagenesmodel.php

Line Number: 29