function get_main_page_jobs($lang = "")
{
$records = $this->db->select('
jc.id,
jec.company_name_'.$lang.' AS company,
jc.position,
jc.is_featured,
jp.name_'.$lang.' AS province,
jc.gender,
jc.end_date
')
->from('jobs_job_posting AS jc')
->join('jobs_employers_company AS jec','jec.id=jc.company_id','LEFT')
->join('jobs_province AS jp','jp.id=jc.province','LEFT')
->get();
if($records->num_rows() > 0){
return $records->result();
}
}