Here is my SQL statement
SELECT * FROM schedule
WHERE teacher_id = '$teacher_id'
AND event_id <> '$event_id'
AND seconds_start = '$start_time'
OR (seconds_start < '$start_time' AND seconds_end > '$start_time')
OR (seconds_start < '$end_time' AND seconds_end >= '$end_time')
As you can see, I want to exclude any results with a certain ID, however this seems to not be working because...
Shouldn't this behave as expected??