Error: Incorrect DATE value: ''
Error No: 1525
SELECT * FROM banners b LEFT JOIN banner_pages bp ON b.banner_id = bp.banner_id WHERE bp.`action`= 'information/contact' AND b.`group` = '1' AND b.`status` = '1' AND IF(b.start_date = '' OR b.start_date <= NOW(), 1, 0) = 1 AND IF(b.end_date = '' OR b.end_date >= NOW(), 1, 0) = 1 ORDER BY RAND() LIMIT 1