SELECT user_id, colum_other , MAX(created_at) latest
FROM `user_question`
WHERE colum_other='something'
GROUP BY user_id
ORDER BY created_at DESC
坑:
WHERE必须在From后边,放到Group后边会报错
FROM `user_question`
WHERE colum_other='something'
GROUP BY user_id
ORDER BY created_at DESC
坑:
WHERE必须在From后边,放到Group后边会报错