HI Ray, I am getting the same error over lots of pages from line 393 testing on localhost.
if ($query && $query->close) $query->close();
This looks as though it is not properly formatted as there is no opening { after the if statement
If I change the line to
$query->close();
the error is not reported.