[NBM] Correction of sub-select query (remark about r1070)

git-svn-id: http://piwigo.org/svn/trunk@1074 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2006-03-09 23:03:57 +00:00
parent 15bb94715f
commit 6163dccab3
+4 -4
View File
@@ -96,12 +96,12 @@ where
$query = '
select
id user_id, username, mail_address
u.id user_id, u.username, u.mail_address
from
'.USERS_TABLE.'
'.USERS_TABLE.' as u left join '.USER_MAIL_NOTIFICATION_TABLE.' as m on u.id = m.user_id
where
mail_address is not null and
id not in (select user_id from '.USER_MAIL_NOTIFICATION_TABLE.')
u.mail_address is not null and
m.user_id is null
order by
id;';