0
我試圖從兩個表doc_to_do
及以下doc_bug_tracker
列出最新更新兩個表和秩序是我的表結構選擇按日期
doc_to_do
doc_bug_tracker
這是我當前的查詢:
$sth = $this->db->prepare('SELECT p.*,
dtd.projects_id as dtd_projects_id, dtd.content as dtd_content, dtd.date_modified as dtd_date_modified,
dbt.projects_id as dbt_projects_id, dbt.content as dbt_content, dbt.date_modified as dbt_date_modified
FROM `projects` p LEFT JOIN `doc_to_do` dtd ON p.id=dtd.projects_id
LEFT JOIN `doc_bug_tracker` dbt ON p.id=dbt.projects_id
where p.id="'.$project_id.'"');
所以現在如何訂購date_modified
無論是從表doc_to_do
或doc_bug_tracker
?