Stylesets query logic in place, join not working correctly.