Are there any other way of doing this query:
SELECT CONCAT_WS(\" \", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor WHERE lessor = \'$less
This will work.
SELECT * FROM (SELECT CONCAT_WS(" ", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor) AS t1 WHERE lessor_name = '$lessor_name'