Fix syntax problems before executing these two mailing scripts.

This commit is contained in:
Wytze van der Raay 2015-02-21 15:03:04 +00:00
parent 9c95fb7987
commit d01b5efe5f
2 changed files with 4 additions and 4 deletions

View file

@ -80,8 +80,8 @@ $query = "
users.lname,
users.email,
COUNT(*) AS agreement_count
FROM user_agreements AS ua
LEFT JOIN users AS u ON users.id = user_agreements.memid
FROM user_agreements
LEFT JOIN users ON users.id = user_agreements.memid
WHERE user_agreements.date >= '2015-01-08 14:29:00'
AND user_agreements.date <= '2015-01-15 10:48:00'
AND user_agreements.document = 'CCA'
@ -90,7 +90,7 @@ $query = "
FROM user_agreements
WHERE user_agreements.date < '2015-01-08 14:29:00'
AND user_agreements.document = 'CCA')
GROUP BY users.id;
GROUP BY users.id";
$res = mysql_query($query);

View file

@ -74,7 +74,7 @@ $query = "
LEFT JOIN users ON users.id = user_agreements.memid
WHERE user_agreements.date < '2015-01-08 14:29:00'
AND user_agreements.document = 'CCA')
GROUP BY users.id;
GROUP BY users.id";
$res = mysql_query($query);