I have two sql queries, one which retrieves all the Event records for a given topic id and another which is supposed to retrieve all Event records excluding given topic id, but doesn't.
The first query retrieves the correct records
SELECT `events`.*
FROM `events` INNER JOIN events_topics ON events.id = events_topics.event_id
WHERE (events_topics.topic_id = 75)
The second query which is supposed to exclude events does not exclude any.
SELECT `events`.*
FROM `events` INNER JOIN events_topics ON events.id = events_topics.event_id
WHERE (events_topics.topic_id <> 75)