Details
Description
Subquery results are incorrect unless we add space or comment.
Added self contained test case to this bug report.
If anywhere between the lines 55 after the parenthesis and before "a.student_id" at line 61 we add a space or comment, the result changes as the expected result for "incorrect_behaviour".
The field "correct_behaviour" has a comment already in place to show the dynamic.
Can't explain this case.