SELECT ip_address, DATETIME, ping_status FROM wire_log WHERE ip_address ='".$result["ip_address"]."' AND ping_status='1' ORDER BY DATETIME DESC limit 1"
$result = mysqli_query($DBConn,"SELECT ip_address, DATETIME, ping_status FROM wire_log WHERE ip_address ='".$result["ip_address"]."' AND ping_status='1' ORDER BY DATETIME DESC limit 1");