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

Fatal error: Uncaught exception 'Exception' with message 'DbMySql->DbMySql::queryRecords: sql [select person.s_rank, rank.name as rankname, person.s_person, person.fname as fname, person.sname as sname, person.s_navydepart, navydepart.descript as navydepartname, visit.visitdate as visitdate, checktoxicology.s_checktoxicology , checktoxicology.s_visit , checktoxicology.lead, checktoxicology.hippuric, checktoxicology.styrene, checktoxicology.acetone, checktoxicology.t_muconic, checktoxicology.chloride, checktoxicology.summary from checktoxicology, person , visit, rank, navydepart where person.s_navydepart = navydepart.s_navydepart AND person.s_rank = rank.s_rank AND person.s_person = visit.s_person AND checktoxicology.s_visit = visit.s_visit 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 32' in /var/www/html in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30