Fixed double backticks
Fixed group_by references
Fixed Table and Column references