SQL Error

SQL was double encapsulated. Fixes #18