unknown table status: TABLE_TYPE
===

I have the following query in the PHP file, and I have tried to type this query into phpmyadmin to execute, it can give me the result, but at the same time, it can show error messages "Unknown table status: TABLE_TYPE"

    $query = "SELECT Type FROM Log WHERE TechID='".$TechID."' ORDER BY LogTime DESC LIMIT 1";

*my TechID is a string instead of a integer number.