Notice: Undefined index: search in /var/www/html/prevent/api/mydoctor/checkvisibility.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, checkvisibility.s_checkvisibility , visit.s_visit, checkvisibility.s_visit, checkvisibility.far, checkvisibility.short, checkvisibility.threedee, checkvisibility.color, checkvisibility.eyemuscle, checkvisibility.visualfield, checkvisibility.summary from person , visit, checkvisibility, rank, navydepart where person.s_navydepart = navydepart.s_navydepart AND person.s_rank = rank.s_rank AND person.s_person = visit.s_person AND checkvisibility.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 33 in /var/www/html/lib/nmd15/db/mySql/DbMySql.php on line 30