I have a little complex query to update in my database, hence I use $this->db->query($sql, array($userId)); to update my table, but the table is not getting u
$this->db->query($sql, array($userId));