Fixed SQL quote escape error