fixed wrong sql

Signed-off-by: Sweil <mail@sweil.de>
fixed encoding

Signed-off-by: Sweil <mail@sweil.de>