אם הבנתי נכון את השאילתה tbldescr-tpyelecetion].typelection לא צריך להיות ב GROUP BY ומה שהכנסת לHAVING צריך להיות בWHERE במקום זה.