I have the following code that has stopped working since MySQL 5.7 upgrade:
$myDB->contentArray = $myDB->executeAssoc("
SELECT DISTINCT(YEAR(displayDate)) as year FROM
`inlineItemData_standardList`
WHERE `inlineItemGroupID` = $inlineItemGroupID
ORDER BY `displayDate` desc");
Could anyone show me how I would replace the DISTINCT part in this? I have searched around and can find others with the same issue but without a lot of PHP knowledge, I can't seem to implement the correct thing. I tried using GROUP BY 'YEAR(displayDate)) as year' but can't seem to get it to work. Thanks in advance.