Query using CURDATE from MySQL instead of DATE from PHP