I have the following query:
$sqlquery="SELECT CONCAT_WS(".",php_version_major, php_version_minor, php_version_build) AS phpversion, COUNT(id) AS COUNT, YEAR(createdate) AS YEAR, MONTH(createdate) AS MONTH FROM logs_checklist_interface GROUP BY phpversion, YEAR(createdate), MONTH(createdate) ORDER BY createdate ASC";
$rsData=mysqli_query($dblink,$sqlquery);
$rsData returns FALSE with this query. The cause seems to be the concat_ws statement. If I remove that it works fine. I've tried the other CONCAT function and it's the same result.
What is wrong with such a simple statement that causes mysqli_query() to get upset ?