select template from ec_templates where template_id=:based_on