PROJECT MANAGEMENT - $[_project_title]select *,
requests.id as request_id,
users.name as author_name,
request_priority.description as priority_description,
releases.description as release_description
from requests
join releases on releases.id=requests.release_id
join users on requests.creator_id=users.id
join request_priority on requests.priority=request_priority.id
where
requests.id=$[_request_id]$[sqlerror]
select tasks_view.task_id as 'X',
tasks_view.task_id as 'Task Id',
tasks_view.text as 'Description',
tasks_view.author_name as 'Author',
tasks_view.created_date as 'Created',
tasks_view.status_text as 'Status',
tasks_view.status_date as 'Since',
tasks_view.assigned_to as 'Assigned'
from tasks_view
where tasks_view.request_id=$[_request_id]