Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in

PHP
mysqli_fetch_array($result) 
 mysqli_fetch_array($query)

Source

Also in PHP: