mysqli_sql_exception Object ( [message:protected] => 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 '' at line 1 [string:Exception:private] => [code:protected] => 1064 [file:protected] => /var/www/html/budgetApi/transactions/Db.php [line:protected] => 27 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/html/budgetApi/transactions/Db.php [line] => 27 [function] => mysqli_query ) [1] => Array ( [file] => /var/www/html/budgetApi/transactions/getById.php [line] => 10 [function] => getTransactionByid [class] => Db [type] => -> ) ) [previous:Exception:private] => [sqlstate:protected] => 42000 ) null