Two things. First, did you try to put the where clause in quotation marks as follows:
$this->db->where('event_start_date <=','DATE_ADD(NOW(),INTERVAL 7 DAYS )');
Secondly, if necessary, simply skip using the where function and place the entire query as follows:
$this->db->query('SELECT event_id,title,event_start_date,location FROM sd_events WHERE event_start_date <= DATE_ADD(NOW(),INTERVAL 7 DAYS )');
source share