Hi,
I used this same query on a database that stored dates as YYYY-MM-DD and it worked fine. I'm now trying to use it on a database that uses epoch and it doesn't work.
The year and month values are 0. When they should be 2006 and 12 respectively.
Here is the query I'm using:
SELECT COUNT(*), YEAR(start_date) AS year, MONTH(start_date) AS month FROM ibf_topics WHERE (forum_id = "59" OR forum_id = "3" OR forum_id = "61") AND pinned = "0" GROUP BY year, month ORDER BY year DESC, month DESC
Thanks for any help,
~Oni.