Craftercms 650

Fixed SQL syntax error