Notice: Undefined index: search in /var/www/html/prevent/api/mydoctor/treat.query.php on line 4

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select s_treat , visitdoctor.s_visitdoctor, visitdoctor.visitdoctordate, icd.s_icd, icd.name as icdname , chief_complain, present_ill, past_history, occ_history, physical_exam, lab, diag, treatment from treat,visitdoctor,icd where treat.s_visitdoctor = visitdoctor.s_visitdoctor AND treat.s_icd = icd.s_icd AND visitdoctor.s_visitdoctor = ] -> 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 20' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/mydoctor/treat.query.php(35): DbMySql->queryRecords('select \n s_t...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30