你应该有一个字段关联两个表比如用户的ID
select A.*,B.username from tb_topic A tb_username B where A.a_id=B.id
可以得到发贴人的用户名