Update SelectDecorator.php

Adjusted function processLimitOffset (limit and offset problem in subselects)  and function processJoins (problems with joins with subselects).