having clause missing