Ok, but when I'm going to filter using a URL variable I need to put the WHERE clause before GROUP BY like this
SELECT * FROM (SELECT * FROM tbleName ORDER BY Date_of_change DESC) as orderedTble
WHERE Access_level LIKE %colname%
GROUP BY Name
That does not automatically give me the correct result, because the Access_level is selected before GROUP BY.
I first need to run the query
SELECT * FROM (SELECT * FROM tbleName ORDER BY Date_of_change DESC) as orderedTble GROUP BY Name
Then filter by Access_level using a URL variable