Exception in query: SQLSTATE[42000]: Syntax error or access violation: 1064 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
select * from loi where id=

Array ( [0] => 42000 [1] => 1064 [2] => 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 )

Exception in query: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'order by itemnumber, alphaname, subtype' at line 1
select * from submissions where loi_id= order by itemnumber, alphaname, subtype

Array ( [0] => 42000 [1] => 1064 [2] => 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 'order by itemnumber, alphaname, subtype' at line 1 )

Exception in query: SQLSTATE[42000]: Syntax error or access violation: 1064 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
select kingdom, status from loi where id=

Array ( [0] => 42000 [1] => 1064 [2] => 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 )
Fatal error: Uncaught Error: Call to a member function fetchRow() on null in /www2/oscar/html/loi.php:254 Stack trace: #0 /www2/oscar/html/index.php(757): display_chosen_loi(NULL, 0) #1 {main} thrown in /www2/oscar/html/loi.php on line 254