fixing sql criteria