我需要修改以下 MySQL 语句以包含来自第三个表的信息......但我很讨厌连接。
select
ss.*,
se.name as engine,
ss.last_run_at + interval ss.refresh_frequency day as next_run_at,
se.logo_name
from
searches ss join search_engines se on ss.engine_id = se.id
where
ss.user_id='.$user_id.'
group by ss.id
order by ss.project_id, ss.domain, ss.keywords
我还需要包括projects.project_name
通过匹配searches.project_id
来检索projects.id
.