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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [ select visitdate as 1a_visitdate, hct as 1c_hct , hb as 2hb , mcv as 3mcv , wbc as 4wbc , pmn as 5pmn , lymp as 6lymp , mon as 7mon , eos as 8eos , platelet as 9A_platelet , rbc as 9B_rbc, summary as 9C_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 19' in /var/www/html/lib/nmd15/db/mySql/DbMySql.php:30 Stack trace: #0 /var/www/html/prevent/api/mydoctor/checkcbc.query.bak.php(35): DbMySql->queryRecords('\nselect \n vi...') #1 {main} thrown in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30