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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select s_checkhearing , checkhearing.s_visit , visit.visitdate as visitdate, rightlow500, rightlow1000, rightlow2000, righthigh3000, righthigh4000, righthigh6000, righthigh8000, rightsummary, leftlow500, leftlow1000, leftlow2000, lefthigh3000, lefthigh4000, lefthigh6000, lefthigh8000, leftsummary from checkhearing,visit where checkhearing.s_visit = visit.s_visit AND visit.s_visit = ] -> 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 25' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/myapp/checkhearing.query.php(39): DbMySql->queryRecords('select \n s_c...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30