Leser: 1
4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SELECT mailing_list_id, mailing_list_name, description, (
SELECT COUNT( nl_at_mailinglist_receiver.receiver_id )
FROM nl_at_mailinglist_receiver, nl_at_letter_receiver
WHERE (
SELECT status FROM nl_receiver
WHERE nl_at_mailinglist_receiver.receiver_id = nl_receiver.receiver_id
) = 'ok'
AND nl_at_mailinglist_receiver.mailing_list_id = nl_mailing_list.mailing_list_id
AND nl_at_letter_receiver.letter_id =0
AND nl_at_letter_receiver.receiver_id = nl_at_mailinglist_receiver.receiver_id
) AS receiver_cnt, (
SELECT COUNT( receiver_id )
FROM nl_at_mailinglist_receiver
WHERE (
SELECT status FROM nl_receiver
WHERE nl_at_mailinglist_receiver.receiver_id = nl_receiver.receiver_id
) = 'ok'
AND nl_at_mailinglist_receiver.mailing_list_id = nl_mailing_list.mailing_list_id
) AS member_cnt
FROM nl_mailing_list
ORDER BY mailing_list_name
LIMIT 0 , 30
1
2
3
#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 'SELECT COUNT( nl_at_mailinglist_receiver.receiver_id )
FROM nl
4 Einträge, 1 Seite |