Error

Error executing query.

database is locked
SELECT wc.cat_name, wc.cat_id, wec.cat_owner FROM webcal_categories wc, webcal_entry_categories wec WHERE wec.cal_id = '22' AND wec.cat_id = wc.cat_id AND ( wc.cat_owner = '__public__' OR (wc.cat_owner = '' OR wc.cat_owner IS NULL) ) ORDER BY wec.cat_order