fixing selector issues for mysql