Váš dotaz je chybný:Zkuste toto
SELECT Comment1, Comment2, Comment3, Comment4
FROM Students
WHERE Course1 = '$value1' AND Course2 = '$value1'
AND Course3 = '$value1' AND Course4 = '$value1'
NEBO
SELECT Comment1, Comment2, Comment3, Comment4
FROM Students
WHERE Course1 = '$value1' OR Course2 = '$value1'
OR Course3 = '$value1' OR Course4 = '$value1'
Na základě vašeho požadavku použijte AND nebo OR při kontrole kurzu