Unexcepted error

I got this error:

Warning: Invalid argument supplied for foreach() in /hermes/bosweb/web278/b2784/ipg.themillionbetcom/theknowlcom/wp-includes/query.php on line 1702

Fatal error: Call to a member function get_queried_object_id() on a non-object in /hermes/bosweb/web278/b2784/ipg.themillionbetcom/theknowlcom/wp-includes/query.php on line 57

Do you know how to fix it?