The query in question is
SELECT MAX(Date) as max, MIN(Date) as min FROM
table
WHERE Id = 'id'
ORDER BY Date DESC
LIMIT 100
And what I want it to do is return the maximum and minimum date of the most recent 100 records. What it does is it displays the min and max from ALL the records.
You must first select the records you are interested in and then select
max()andmin()from those.