Code:
do yourself a really big favour, and don't write your queries all on one great big long humungous single line, because you will have a really hard time reading it and, more importantly, understanding it -- instead, wrap it onto multiple lines, with indentation too, and then you won't have to do all this stupid flipping scrolling back and forth, back and forth ...
sorry, couldn't help myself 
okay, combine the queries by another inner join:
Code:
SELECT u_one.username
FROM authorize AS u_one
INNER
JOIN authorize AS u_all
ON u_all.department IN ( u_one.department
, u_one.department2
, u_one.department3
, u_one.department4
, u_one.department5
, u_one.department6 )
INNER
JOIN timesheet
ON timesheet.username = u_one.username
WHERE u_one.username = '$_SESSION[user_name]'
if a user can have more than one timesheet, then you will want to add the word DISTINCT after the word SELECT
Bookmarks