SELECT ban_url, ban_width, ban_height, ban_date_set, ban_click_total, ban_click_today, ban_click_yesterday, ban_counter FROM banner_data WHERE ban_publish = 1 AND (DATEDIFF(DAY, ban_dateup, GETDATE()) >= 0) AND ban_id = 659