SELECT kid, sisu, count(distinct(kid)) AS arv FROM register WHERE register='pealkirjad' AND (sisu_otsi LIKE 'Uuel aastal%' ) GROUP BY sisu ORDER BY sisu_otsi;Table 'asko.register' doesn't exist