Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
<p>I am sure this used to work. </p>

<p><code>SELECT first_name, surname, id, time, MIN(timeinmilliseconds) FROM users WHERE team= '$key</code>'</p>

<p>I don't know where or why I would use a GroupBy Clause.</p>