chg: replace a MySQL specific function by PHP code
chg: replace a MySQL specific function by PHP code

cristianbell/MISP,MISP/MISP,SteveClement/MISP,FloatingGhost/MISP,cristianbell/MISP,crruthe/MISP,SteveClement/MISP,Rafiot/MISP,crruthe/MISP,FloatingGhost/MISP,FIRSTdotorg/MISP,SteveClement/MISP,devnull-/MISP,crruthe/MISP,cristianbell/MISP,MISP/MISP,SteveClement/MISP,FloatingGhost/MISP,MISP/MISP,cristianbell/MISP,SteveClement/MISP,FIRSTdotorg/MISP,Rafiot/MISP,MISP/MISP,Rafiot/MISP,FloatingGhost/MISP,TheDr1ver/MISP,TheDr1ver/MISP,crruthe/MISP,FIRSTdotorg/MISP,TheDr1ver/MISP,FIRSTdotorg/MISP,TheDr1ver/MISP,Rafiot/MISP,devnull-/MISP,MISP/MISP,devnull-/MISP,devnull-/MISP