Возникла проблема!
Cannot use object of type mysqli_result as array