Fixed embeded sql