I want a function like that in codeIgniter
$this->db->query(here is my query);
because I want to do queries like this
$query = "SELECT V.`name`, V.`mail`, V.`printDate`, V.`country`
FROM volunteers AS V
INNER JOIN volunteer_skills AS VS ON V.profileId = VS.profileId
INNER JOIN ist_skill AS S ON VS.skillId = S.skillId
WHERE S.skillId = {$skill_id} LIMIT {$limit1},{$limit2}";
OR How can I do this by the library??