Is there any other way to make this request:
SELECT CONCAT_WS(" ", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor WHERE lessor = '$lessor_name'
I tried, but got an error that an unknown column says in mysql
This may be due to lessor instead of lessor_name in where where. So try below:
lessor
lessor_name
SELECT CONCAT_WS(" ", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor having lessor_name= '$lessor_name'
In MySQL, you cannot use an alias near WHERE .
maybe this will work:
SELECT CONCAT_WS(" ", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor WHERE CONCAT_WS(" ", strLname, strFname, strMname) = '$lessor_name'
This will work.
SELECT * FROM (SELECT CONCAT_WS(" ", strLname, strFname, strMname) AS lessor_name FROM tbl_lessor) AS t1 WHERE lessor_name = '$lessor_name'
Source: https://habr.com/ru/post/1388796/More articles:Is it possible to install Launch4J so that the exe files that it creates cannot display its contents through a zip / egg / rar file when you click on it / open it? - javaHow to create a system for migrating encryption? - passwordsRails 3.1 Possible error in the pipeline and Uglifier - ruby-on-rails-3.1Java FIFO Queue with disk overflow - javaSystem.IndexOutOfRangeException: The index was outside the array - c #After an event is launched, paused or expected, as I know when it is normal to continue - html5Abstract class with static methods. It's right? - java: confusion of the last child pseudo-class - csshow to quickly find the active file in NERDTree - vimThe best way to compare string arrays (command line commands) is stringAll Articles