function delete_ScormByIdPlataforma($id_platform)
{
$query = $this->db->query("delete from scormvars where scoinstanceid in
(select scoinstanceid from dispatch where id_licencia in
(select id_licencia from licencias where id_plataforma = $id_platform))");
// return true;
}
This is my function in my model, the query is ok, but I don't know how to execute the query.