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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [ select visit.entrydate as 0entrydate, checkcbc.wbc as 1_wbc, checkcbc.pmn as 2_pmn, checkcbc.lymp as 3_lymp, checkcbc.mon as 4_mon, checkcbc.eos as 5_eos, checkcbc.ba as 6_ba, checkcbc.rbc as 7_rbc, checkcbc.hb as 8_hb, checkcbc.hct as 9_hct, checkcbc.mcv as 9a_mcv, checkcbc.mch as 9b_mch, checkcbc.mchc as 9c_mchc, checkcbc.platelet as 9d_platelet, checkcbc.summary as 9e_summary from visit, checkcbc ,person where visit.s_visit = checkcbc.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 23' in /var/www/html/lib/nmd15/db/mySql/DbMySql.ph in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30