Lines 212, 253, and 281 have SQL starting with a double quote then ending in a single quote. I fixed all three then tested but the site seemed to go into a loop until I deleted the module.