Fixed SQL

Woops