I am formalating a query to give the number of reports submitted over the last year ordered by date. I get the current year and month with php:
$year = date
count(col_name) AS count will give you count 0
count
For reference you can visit http://www.mysqlperformanceblog.com/2007/04/10/count-vs-countcol/