Don't copy/paste to much. mysqli_query has switched the arguments.