fixed wc_get_customer_available_downloads() query, closes #6057