Missing quote at end of SQL instruction