Could not query: SELECT * FROM units, properties WHERE properties.id=units.Property_ID AND units.ID= in getUnitByID::SELECT
More: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Backtrace: Array ( [0] => Array ( [file] => /home/marcbran/brandscapital/database.php [line] => 55 [function] => runQuery [class] => DBClass [object] => DBClass Object ( [dblink:DBClass:private] => mysqli Object ( [affected_rows] => -1 [client_info] => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ [client_version] => 50012 [connect_errno] => 0 [connect_error] => [errno] => 1064 [error] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 [error_list] => Array ( [0] => Array ( [errno] => 1064 [sqlstate] => 42000 [error] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 ) ) [field_count] => 9 [host_info] => Localhost via UNIX socket [info] => [insert_id] => 0 [server_info] => 5.5.5-10.3.17-MariaDB-0+deb10u1-log [server_version] => 50505 [stat] => Uptime: 3649498 Threads: 8 Questions: 6197282 Slow queries: 2155 Opens: 522 Flush tables: 1 Open tables: 376 Queries per second avg: 1.698 [sqlstate] => 00000 [protocol_version] => 10 [thread_id] => 3213500 [warning_count] => 0 ) ) [type] => -> [args] => Array ( [0] => SELECT * FROM units, properties WHERE properties.id=units.Property_ID AND units.ID= [1] => getUnitByID [2] => SELECT ) ) [1] => Array ( [file] => /home/marcbran/brandscapital/profile.php [line] => 329 [function] => getUnitByID [class] => DBClass [object] => DBClass Object ( [dblink:DBClass:private] => mysqli Object ( [affected_rows] => -1 [client_info] => mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ [client_version] => 50012 [connect_errno] => 0 [connect_error] => [errno] => 0 [error] => [error_list] => Array ( ) [field_count] => 9 [host_info] => Localhost via UNIX socket [info] => [insert_id] => 0 [server_info] => 5.5.5-10.3.17-MariaDB-0+deb10u1-log [server_version] => 50505 [stat] => Uptime: 3649498 Threads: 8 Questions: 6197282 Slow queries: 2155 Opens: 522 Flush tables: 1 Open tables: 376 Queries per second avg: 1.698 [sqlstate] => 00000 [protocol_version] => 10 [thread_id] => 3213500 [warning_count] => 0 ) ) [type] => -> [args] => Array ( [0] => ) ) )