I'm basically attempting to use the NOT IN function twice during a mySQL query My NEW current query is as followed
SELECT `o`.`id`, `o`.`name`, `o`.`url`, `o`.`type`, `o`.`desc` FROM `offers` as `o`
WHERE `o`.country_iso = '$country_iso' AND `o`.`id` not in
(select distinct(offer_id) from conversions where ip = '$_SERVER[REMOTE_ADDR]'
and converted != '0') AND `o`.`id` not in
(select `offer_id` from `aff_disabled_offers` where `offer_id` = 'o.id'
and `user_id` = '1') ORDER by rand() LIMIT $limit
The query works but for some reason it's completely ignoring this
AND `o`.`id` not in
(select `offer_id` from `aff_disabled_offers` where `offer_id` = 'o.id')