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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [ select s_checkcbc , visit.s_visit , visit.visitdate as visitdate, hct , hb , mcv , wbc , pmn , lymp , mon , eos , platelet , rbc , ba , mch , mchc , summary from checkcbc,visit where checkcbc.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 23' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/myreport/checkcbc.query.php(38): DbMySql->queryRecords('\nselect \n s_...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30