SQL: SELECT DISTINCT(p.fid) AS fid, f.name, COUNT(tid) AS posts FROM [Table]threads p
LEFT JOIN [Table]forums f USING (fid)
WHERE dateline BETWEEN AND
GROUP BY p.fid ORDER BY posts DESC LIMIT 0,20
Error: 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 'AND
GROUP BY p.fid ORDER BY posts DESC LIMIT 0,20' at line 3
Errno.: 1064
Similar error report has beed dispatched to administrator before.