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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select * from checkhearing,person,visit where checkhearing.s_visit = visit.s_visit AND person.s_person = visit.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 8' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/mydoctor/chartcheckhearing.query.php(22): DbMySql->queryRecords('select \n * \n...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30