I am trying to do a query that used to work but I updated to mysql 5.7.
The GROUP by does not work..
$query = "SELECT * FROM `all_contacts` GROUP BY `email` ORDER BY `id` DESC";
$prevResult = mysqli_query($con,$query);
while($row = mysqli_fetch_array($prevResult)){
echo $row['email'].'<br>';
}
It isnt giving me any results. The connection is good because if I remove GROUP BY it works.