select task_number, task_name, workflow_name, mstatus_name, resolution_name
from gr_task, gr_workflow
left join gr_mstatus on workflow_id=mstatus_workflow
left join gr_resolution on resolution_mstatus=mstatus_id 
where workflow_task=task_id
and (task_number<2 or task_number>25);  