Ik heb dit:
cms_accounts
-id-email-username-password-
[email protected]
[email protected]
cms_accounts_sites
-id-account-site-
-1-2-5-
-2-1-3-
en nu wil ik dit: alle email uit cms_accounts waar in cms_accounts_sites bij site "1" staat.
hoe te doen?
Mvg,
Jonathan
edit:
heb dit hiero geprobeerd:
SELECT a.email
FROM a.cms_accounts, b.cms_accounts_sites
WHERE b.site = a.id
maar krijg dan dit:
Fout
SQL-query: Documentatie
SELECT a.email
FROM a.cms_accounts, b.cms_accounts_sites
WHERE b.site = a.id
LIMIT 0 , 30
MySQL retourneerde: Documentatie
#1044 - Access denied for user 'jonathan'@'localhost' to database 'a'
en dan floep ik in pma weg uit die db