Q&A for participants in team and individual sport activities
select c.text as comment , p.id as postId , isnull(q.id, p.id) as questionId , isnull(q.title, p.title) as title , Isnull(q.tags, p.tags) as tags from Comments c inner join posts as p on (p.Id = c.PostId) left join posts as q on (q.id = p.parentId) where UserId = ##uid## and text like '%##search##%'