SELECT so.increment_id,
status,
so.customer_id,
so.base_grand_total,
so.base_total_paid,
c.email,
so.created_at,
so.shipping_name,
sku,
qty_ordered
FROM sales_flat_order_item AS si
INNER JOIN sales_flat_order_grid AS so ON so.entity_id = si.order_id
INNER JOIN customer_entity AS c ON c.entity_id = so.customer_id
INNER JOIN sales_flat_order_payment AS sp ON sp.parent_id = si.order_id
WHERE so.created_at BETWEEN '2017-09-30' AND '2017-12-01'
AND sku LIKE '%__SKU__%';