$sql = "SELECT $tb_profile.*, $tb_information.*, $tb_study.*, $tb_skill.*, $tb_experience.*, $tb_jobs.*
FROM $tb_profile, $tb_information, $tb_study, $tb_skill, $tb_experience, $tb_jobs
WHERE ($tb_profile.id_card = $tb_information.id_card)
AND ($tb_profile.status = 'active')
AND ($tb_profile.id_card = $tb_study.id_card)
AND ($tb_profile.id_card = $tb_skill.id_card)
AND ($tb_profile.id_card = $tb_experience.id_card)
AND ($tb_profile.id_card = $tb_jobs.id_card)
AND ($tb_profile.time_create > '$from')
AND ($tb_profile.time_create < '$to 23:59:59')
ORDER BY $tb_profile.time_create DESC";