Tags In Thread: how to write a select query with condition ?

User Name
Tagged By
Date