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 '%25) AND habitaciones_prop >= %25 AND operacion_prop LIKE '%25' AN' at line 50