Please introduce a function to get the current date without time component, so this is no longer needed: ``` DATE(YEAR(NOW()) + '-' + MONTH(NOW()) + '-' + DAY(NOW())) ``` See https://www.w3schools.com/sql/func_mysql_curdate.asp for example.