OK, here's the fix:
open /core/common/OperationsData.class.php
Around about line 149/150:
$sql = "INSERT INTO " . TABLE_PREFIX . "aircraft
(icao, name, fullname, registration, downloadlink, imagelink, range, weight, cruise)
VALUES ('$icao', '$name', '$fullname', '$registration', '$downloadlink', '$imagelink',
'$range', '$weight', '$cruise')";
Replace with:
$sql = "INSERT INTO ".TABLE_PREFIX."aircraft (
icao, name, fullname, registration, downloadlink,
imagelink, `range`, weight, cruise)
VALUES (
'$icao', '$name', '$fullname', '$registration', '$downloadlink',
'$imagelink', '$range', '$weight', '$cruise')";
Then, scroll down about 10line:
Find:
$sql = "UPDATE " . TABLE_PREFIX."aircraft
SET icao='$icao', name='$name', fullname='$fullname',
registration='$registration', downloadlink='$downloadlink',
imagelink='$imagelink', range='$range', weight='$weight',
cruise='$cruise'
WHERE id=$id";
Replace with:
$sql = "UPDATE " . TABLE_PREFIX."aircraft
SET icao='$icao', name='$name', fullname='$fullname',
registration='$registration', downloadlink='$downloadlink',
imagelink='$imagelink', `range`='$range', weight='$weight',
cruise='$cruise'
WHERE id=$id";
Basically adding backticks (`) around the range column name.
This is fixed now for the next release but that's a quick fix for now.