Grammatically, which is correct and which is incorrect? (Don’t pay attention to the written answers)

Answer:
Experts recommend that a student doesn't study all night before an exam
Answer:
The first is correct, and the second is incorrect
Explanation:
I hope this helps :)