I m facing an issues in sql query It worked with previous version - 5.6
But now its not working with version 5.7
So anyone can help me to convert this query to sql 5.7
SELECT to_startdate, to_enddate
FROM tour
WHERE to_name !=''
AND to_startdate !='0000-00-00'
AND to_deactivated !=1
GROUP BY MONTH(to_startdate), YEAR(to_startdate)
ORDER BY to_startdate