select syntax fixes