Tags In Thread: What is the best/correct way to query a database with variables?

User Name
Tagged By
Date