That seems pretty logical to me, but I am still getting some errors from that. I go this error:
Query failed: You have an error in your SQL syntax near 'SELECT mail_sent.email FROM mail_sent) LIMIT 10' at line 1 SQL: SELECT * FROM test WHERE test.email NOT IN (SELECT mail_sent.email FROM mail_sent) LIMIT 10 in /home/jweasel/soupstudios-www/richemail/classes/MySQL.php on line 113
It does not like the nested SELECT, so I tried this too:
$sql = "SELECT * FROM test WHERE test.email NOT IN (mail_sent.email) LIMIT 10";
This gave me no error, but it also returned no data when it should have.
Any ideas anyone?