你可能想把'news'作为一个字符串引用...你也可能想要使用内连接(效率更高)
SELECT * FROM table1 INNER JOIN table2 ON table1.user_id = table2.id WHERE table1.content = 'news' AND table1.content_id = 1