$strsqlju = "SELECT *, sum(o.pay) as pay FROM tbl_orders o inner join tbl_pay p on p.OrderID=o.OrderID where pay_Day like'%$y-06-%'";
echo "$strsqlju";
$resultsqlju = mysqli_query($dblink, $strsqlju);
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result,