FATAL [/home/thorpe1/web/webapps/thorpeforms/lib/eclipse/Database.php:358] Object of class mysqli_result could not be converted to int