Fix syntax problems before executing these two mailing scripts.
This commit is contained in:
parent
9c95fb7987
commit
d01b5efe5f
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue