working except mysql ' ' quote problem