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