I can't believe I forgot that bracket.
try to fix SQL error