Trying to output top 3 listings:
SELECT COUNT(T1.ads_id) AS COUNT, T1.ads_issue, T2.issue_id, T2.issue_onlinestatus, T2.issue_date
FROM T1
GROUP BY T1.ads_id
LEFT JOIN 01_intel_issues ON (T1.ads_issue = T2.issue_id)
WHERE T2.issue_onlinestatus = 'ON' AND MONTH(T2.issue_date)=$checkMonth
LIMIT 0,3
But keep getting the following error message:
SQL/DB 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 'LEFT JOIN T2 ON ( T1.ads_issue = T2.]