This is my query:
$query = $db
->select()
->from(array('ns' => 'news_subscriber'),
array('ns.id', 'ns.subscriber_email')
)
->where('ns.id NOT IN (?)',
$db
->select()
->from(array('nss' => 'news_subscribers_has_news_letter_content'),
array('nss.news_subscribers_id')
)
->where('nss.news_letter_content_id =' , $id)
);
$subscribers = $db->fetchAll($query);
I am getting this error:
Syntax error or access violation 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))))' at line 1`
I feel the problem is in the "IN".
Any ideas?