A Database Error Occurred

Error Number: 1064

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 `p_estado` = 1 AND `p_imagen_principal` != '' and p_imagen_listado != '' an' at line 4

SELECT * FROM (`np_propiedad`) WHERE `p_proyectos` = AND `p_estado` = 1 AND `p_imagen_principal` != '' and p_imagen_listado != '' and p_banos != '' and p_dormitorios != '' ORDER BY `p_precio` ASC LIMIT 1

Filename: /home/civilia/public_html/modules/proyectos/models/proyectos_models_propiedad.php

Line Number: 301