fixed an url redirect issue in the backend

fixed an url redirect issue in the backend
fixed an error in the mysql search

fixed an error in the mysql search