You are missing a from
clause:
UPDATE t_topics
SET topic_title = (SELECT t_posts.post_subject
FROM t_posts
WHERE t_posts.post_id = t_topics.topic_first_post_id
)
WHERE topic_id = 2;