I have the following condition in ExpressionEngine (which is using CodeIgniter framework):
if ($group_id !== '')
{
$this->db->where("members.group_id", $group_id);
}
I´d like to add an extra condition to that where (an AND), how can I do this? Do I add a new $this->db->where('my_field', $my_value)? Or how?