I have this problem :
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ip' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:610 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(610): PDO->query('SELECT `ip` FRO...') #1 C:\xampp\htdocs\accountmanagement.php(13): OTS_Account->getCustomField('ip') #2 C:\xampp\htdocs\index.php(240): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 610
Line 610 is :
$value = $this->db->query('SELECT ' . $this->db->fieldName($field) . ' FROM ' . $this->db->tableName('accounts') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $this->data['id'])->fetch();
PLEASE HELP !
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ip' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:610 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(610): PDO->query('SELECT `ip` FRO...') #1 C:\xampp\htdocs\accountmanagement.php(13): OTS_Account->getCustomField('ip') #2 C:\xampp\htdocs\index.php(240): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 610
Line 610 is :
$value = $this->db->query('SELECT ' . $this->db->fieldName($field) . ' FROM ' . $this->db->tableName('accounts') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $this->data['id'])->fetch();
PLEASE HELP !