SQL query for a Woocommerce orders based on Customer ID
How can I perform a SQL query for the following? $args = array( 'customer_id' => $customer_id, 'status' => 'completed', 'limit' => 1, ); $orderslast = wc_get_orders( $args ); Here's an error I get: 2019/08/14 09:08:03 [error] 11#11: *19 FastCGI sent…