CONCAT(MONTHNAME(i.time), ' ', YEAR(i.time), c.categoryName) Error Code: 1271. Illegal mix of collations for operation 'concat'
I believe YEAR() returns an int. So you need to cast that to varchar.
How do I proceed?
i.time is a timestamp and categoryName is a varchar
Try changing this: YEAR(i.time)
To this: CONVERT(varchar(5), YEAR(i.time))