Corrected the sql.

Signed-off-by: bregell <johan_bregell@hotmail.com>