Fixed SQL apostrophie crash error.

SQL querys cannot have single quotes apparently. Who knew?