Index: t3lib/class.t3lib_sqlparser.php =================================================================== --- t3lib/class.t3lib_sqlparser.php (revision 6899) +++ t3lib/class.t3lib_sqlparser.php (working copy) @@ -583,7 +583,7 @@ case 'ADDKEY': case 'ADDPRIMARYKEY': $result['KEY'] = $fieldKey; - $result['fields'] = $this->getValue($parseString,'_LIST'); + $result['fields'] = $this->getValue($parseString, '_LIST', 'INDEX'); if ($this->parse_error) { return $this->parse_error; } break; case 'DROPKEY':