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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select visitdoctor.s_visitdoctor , visitdoctor.s_sysuser, person.s_person, visitdoctor.visitdoctordate, visitdoctor.entrydoctordate from visitdoctor, person where visitdoctor.s_person = person.s_person AND person.s_person = ] -> 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 11' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/mydoctor/visitdoctor.query.php(29): DbMySql->queryRecords('select \n vis...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30