For some reason this function stopped working:
mysql_query("DELETE FROM `x_servers` WHERE `end_date` <= NOW() AND `service_type` = 'timeboost' OR `end_date` <= NOW() AND `service_type` = 'vip'") or die(mysql_error());
Notably it worked fine before, so I suspect this happened after moving to mysql 5.7
Thing is that the function works if I remove the end_date
<= NOW()` clause, so I think there's a problem with NOW().
Tried looking around and tried replacing it with CURDATE() and other synonyms but nothing worked. Hope that somebody can help.