Select COUNT(*) as num t1.id,t1.ads_city,t1.ads_title,t1.ads_description,t1.ads_location,t2.ads_date,t2.ads_image,t2.ads_id,t2.ads_time,t2.postads_id ,t2.ads_url
FROM postads t1
JOIN nextpostads t2 ON t1.id = t2.postads_id
WHERE t2.ads_activate="Yes"
AND t1.ads_type="offerring"
AND t1.ads_category="Learning & Education"
AND t1.ads_city="kolkata"
ORDER BY t2.ads_time DESC
I am getting an error message
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 't1.id,t1.ads_city,t1.ads_title,t1.ads_description,t1.ads_location,t2.ads_date,t2' at line 1
what about this error ?