Added AND NOT to where in #overlapping_requests to make sure result did not match id.
Lots of problems to fix...