SELECT * FROM gs_custom_yuanxiaozixun WHERE tbdate >= CONCAT(DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 DAY),'%Y-%m-%d'),' 12:00:00') AND tbdate <= CONCAT(DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 0 DAY),'%Y-%m-%d'),' 12:00:00')