Situation
When adding a county or any list for a patient, I get an SQL error.
OpenEMR Version
I’m using OpenEMR version 7.0.1
Browser:
I’m using: Doesn’t matter but Firefox/Chrome.
Operating System
I’m using: Windows 11
Search
Did you search the forum for similar questions? Yes. Not found.
Logs
Did you check the logs?
Yes
Was there anything pertinent in them?
Yes
Please paste them here (surround with three backticks (```) for readability.
SQL Statement failed on preparation: SELECT * FROM list_options WHERE list_id= ?AND option_id = ?AND activity = 1'
Query Error
ERROR: query failed: SELECT * FROM list_options WHERE list_id= ?AND option_id = ?AND activity = 1
Error: 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 '?AND option_id = ?AND activity = 1' at line 1
C:\laragon\webroots\current\openemr-7.0.1\library\ajax\addlistitem.php at 54:sqlQuery
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All