You can compare the time part from datatime field by using DATE_FORMAT
,Also using this approach you need to pass third parameter as FALSE
to avoid addition of backticks by active record
$this->db->where("DATE_FORMAT(period_end,'%H:%i:%s') >", $time,FALSE);