Improved code for selecting posts by category

After this change the widget won't receive automatically posts from subcategories, but will work with posts with multiple categories