Notice: Undefined index: elenuser in /home/fitandfr/public_html/order-summery.php on line 8

Notice: Trying to access array offset on value of type null in /home/fitandfr/public_html/order-summery.php on line 8
Select Query Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and orders.payment_status!=0 order by orders.ID desc' at line 1 select orders.ID, orders.review, orders.book_status, orders.status, orders.userID, orders.walletPayment,orders.onlinePayment,orders.totalPayment,orders.total_amount,orders.payment_status,orders.totalitems,orders.createdAt,saleProduct.pID,saleProduct.salePrice,saleProduct.qty,saleProduct.color,saleProduct.size,product.p_bamt,product.p_famt, product.p_name, product.p_lessprice, product.p_img,product.p_sku,product.p_bv, product.p_pv, product.p_price, shippingAddress.firstName,shippingAddress.lastName, shippingAddress.email, shippingAddress.phone, shippingAddress.address, shippingAddress.landmark, shippingAddress.country, shippingAddress.city, shippingAddress.state, shippingAddress.pincode from orders inner JOIN saleProduct on saleProduct.orderID=orders.ID INNER JOIN product ON saleProduct.p_sku=product.p_sku inner JOIN shippingAddress on orders.addressID=shippingAddress.ID where orders.userID= and orders.payment_status!=0 order by orders.ID desc