Sum of a total as a percentage Sql query

it gives me this error when running this query
query%20error