index.php: and get the error : Db.php If I running in the sql() method, execute() and fetch() the data inside it , it can truly get the data , but put the execute() and fetch() to the query() method, getting the error message, Any Idea? ; Answer There is an error in your code. In this line: The execute() method