[BUGFIX] Proper SQL query to select plugin instance page UIDs