changed sql in basket
Performance issue