<br />
<b>Deprecated</b>:  Creation of dynamic property Database::$conn is deprecated in <b>/home/weselvq/weselvesapi/config/database.php</b> on line <b>7</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Database::$host is deprecated in <b>/home/weselvq/weselvesapi/config/database.php</b> on line <b>8</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Database::$db_name is deprecated in <b>/home/weselvq/weselvesapi/config/database.php</b> on line <b>9</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Database::$username is deprecated in <b>/home/weselvq/weselvesapi/config/database.php</b> on line <b>10</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Database::$password is deprecated in <b>/home/weselvq/weselvesapi/config/database.php</b> on line <b>11</b><br />
<br />
<b>Warning</b>:  Undefined array key "sensorId" in <b>/home/weselvq/weselvesapi/methane/getStatusBySensor.php</b> on line <b>26</b><br />
<br />
<b>Fatal error</b>:  Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND methaneReading.sensorId=NULL SORT BY methaneReading.datetime DESC' at line 1 in /home/weselvq/weselvesapi/objects/methane.php:96
Stack trace:
#0 /home/weselvq/weselvesapi/objects/methane.php(96): PDOStatement-&gt;execute()
#1 /home/weselvq/weselvesapi/methane/getStatusBySensor.php(28): Methane-&gt;getStatusByDeviceId()
#2 {main}
  thrown in <b>/home/weselvq/weselvesapi/objects/methane.php</b> on line <b>96</b><br />
