Fixed bug in SQL query to find coworkers