SELECT CONCAT_WS(" ",strLname,strFname,strMname) AS lessor_name
FROM tbl_lessor
WHERE lessor = '$lessor_name'
最佳答案
这可能是由于lessor而不是where子句中的lessor_name.所以尝试下面一次:
SELECT CONCAT_WS(" ",strMname) AS lessor_name
FROM tbl_lessor
having lessor_name= '$lessor_name'