Use single quotes for SQL
Change log table name to an instance variable