My goal is to do exactly what the LEFT OUTER JOIN intends to do using the 4th venn diagram : SQL diagrams :

My query does not return any values whatsoever, where in fact it should return everything within Consulting_Memberships minus the one stored in Consultant_Memberships_Lists.
For easier understanding see SQL Fiddle :
SELECT *
FROM consultant_memberships
LEFT OUTER JOIN consultant_memberships_list
ON consultant_memberships.`id` =
consultant_memberships_list.membership_id
WHERE consultant_memberships_list.consultant_id = $id
AND consultant_memberships_list.membership_id IS NULL
The query uses “5” as an identifier for demo purposes to try and select the correct rows.
source
share