我有以下 sql 查询:
//Get id
SELECT id from magazine where name = 'Web Designer'
SELECT avatar from person where newsletter = 1 and id in
(
SELECT person_id as id FROM person_magazine WHERE magazine_id = 9 //use id from previous query
)
如何将它们组合起来,这样我就不必运行两个查询?