fix sql expression of professor search