I don't see enough detail here to answer your question:(
Can you post your query at the point where it works, then again with the Boolean fields added where it doesn't work?
My first thought was around the FK for table 3 which has some null values, but your subsequent text suggests that isn't...