The SQL got some problem with sql_mode = ONLY_FULL_GROUP_BY how to rewrite this SQL ?
SELECT
s.id,
s.users_id,
COUNT(*) as attempt,
s.time
s.language,
s.is_public,
u.name,
u.nick
FROM
s
INNER JOIN users u ON u.id = s.users_id
WHERE s.sid = 10 AND s.result = 1
GROUP BY s.users_id
ORDER BY s.time