REALLY Fixed sql bug.