brotherhood_of_LAN - 8:42 pm on Mar 28, 2013 (gmt 0)
Where is the id variable stored at the moment. In a cookie, or session?
If you already have the variable and verified the person is logged in, then use that variable in the query.
post the query and include some more info about what variables you have available to identify the user.