Error: Table './page2page/v21_link_categories' is marked as crashed and last (automatic?) repair failed
SELECT *, t1.`title` `title` FROM `v21_links` t1 LEFT JOIN `v21_link_categories` t2 ON t2.`id_link` = t1.`id` LEFT JOIN `v21_categories` t3 ON t2.`id_category` = t3.`id` WHERE t1.`status` = 'active' AND `t1`.`sponsored` = '1' AND t3.`status` = 'active' AND t2.`id_category` <> '3275' GROUP BY t1.`id` ORDER BY RAND() LIMIT 0, 3

Debug backtrace:

#0 Database->query(SELECT *, t1.`title` `title` FROM `v21_links` t1 LEFT JOIN `v21_link_categories` t2 ON t2.`id_link` = t1.`id` LEFT JOIN `v21_categories` t3 ON t2.`id_category` = t3.`id` WHERE t1.`status` = 'active' AND `t1`.`sponsored` = '1' AND t3.`status` = 'active' AND t2.`id_category` <> '3275' GROUP BY t1.`id` ORDER BY RAND() LIMIT 0, 3) called at [/wwwroot/page2page/includes/classes/DirDb.php:197] #1 Database->getAll(SELECT *, t1.`title` `title` FROM `v21_links` t1 LEFT JOIN `v21_link_categories` t2 ON t2.`id_link` = t1.`id` LEFT JOIN `v21_categories` t3 ON t2.`id_category` = t3.`id` WHERE t1.`status` = 'active' AND `t1`.`sponsored` = '1' AND t3.`status` = 'active' AND t2.`id_category` <> '3275' GROUP BY t1.`id` ORDER BY RAND() LIMIT 0, 3) called at [/wwwroot/page2page/includes/classes/DirLink.php:352] #2 Link->getByStatus(sponsored, 3275, 0, 3) called at [/wwwroot/page2page/includes/classes/DirLink.php:394] #3 Link->getSponsored(3275, 0, 3) called at [/wwwroot/page2page/includes/view.inc.php:310] #4 require_once(/wwwroot/page2page/includes/view.inc.php) called at [/wwwroot/page2page/upgrade-link.php:30]