Fix a wrong parameter in sql query of searching unlock code