Get all insurance details for patient in openEMR using api return this error


Notice: Key file "file://C:/xampp/htdocs/openemr/sites/default/documents/certificates/oapublic.key" permissions are not correct, recommend changing to 600 or 660 instead of 666 in C:\xampp\htdocs\openemr\vendor\league\oauth2-server\src\CryptKey.php on line 74

Warning: foreach() argument must be of type array|object, string given in C:\xampp\htdocs\openemr\src\Services\InsuranceService.php on line 211

Query Error

ERROR: query failed: SELECT * FROM insurance_data WHERE

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


C:\xampp\htdocs\openemr\src\Services\InsuranceService.php at 218:sqlStatement
C:\xampp\htdocs\openemr\src\RestControllers\InsuranceRestController.php at 29:getAll(1)
C:\xampp\htdocs\openemr\_rest_routes.inc.php at 6224:getAll(1)
C:\xampp\htdocs\openemr\src\Common\Http\HttpRestRouteHandler.php at 103:{closure}
Fatal error: Uncaught Error: Object of class OpenEMR\Common\Http\HttpRestRequest could not be converted to string in C:\xampp\htdocs\openemr\library\sql.inc.php:576 Stack trace: #0 C:\xampp\htdocs\openemr\library\sql.inc.php(576): implode(',', Array) #1 C:\xampp\htdocs\openemr\library\sql.inc.php(131): HelpfulDie('query failed: S...', 'You have an err...') #2 C:\xampp\htdocs\openemr\src\Services\InsuranceService.php(218): sqlStatement('SELECT * FROM i...', false) #3 C:\xampp\htdocs\openemr\src\RestControllers\InsuranceRestController.php(29): OpenEMR\Services\InsuranceService->getAll('1') #4 C:\xampp\htdocs\openemr\_rest_routes.inc.php(6224): OpenEMR\RestControllers\InsuranceRestController->getAll('1')

I am using http://localhost/openemr/apis/default/api/patient/1/insurance this api
#5 C:\xampp\htdocs\openemr\src\Common\Http\HttpRestRouteHandler.php(103): {closure}(‘1’,
Object(OpenEMR\Common\Http\HttpRestRequest))
#6 C:\xampp\htdocs\openemr\apis\dispatch.php(389): OpenEMR\Common\Http\HttpRestRouteHandler::dispatch(Array,
Object(OpenEMR\Common\Http\HttpRestRequest))
#7 {main}
thrown in C:\xampp\htdocs\openemr\library\sql.inc.php on line 576