Лицо
Got error 28 from storage engine SQL=SELECT a.id, a.catid, a.sectionid AS secid, a.title AS atitle, c.title AS ctitle, s.title AS stitle, a.introtext, a.fulltext, a.created, u.name, a.created_by_alias, a.hits, a.access,
CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug,
CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS catslug
FROM bn_content AS a
INNER JOIN bn_sections AS s ON s.id = a.sectionid
INNER JOIN bn_categories AS c ON c.id = a.catid
LEFT JOIN bn_users AS u ON u.id = a.created_by
WHERE a.state = 1 AND a.sectionid > 0
AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2021-04-11 21:17:34')
AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2021-04-11 21:17:34')
AND s.access <= 0 AND c.access <= 0 AND a.access <= 0 AND (a.id=3100 OR a.id=6924 OR a.id=6923 OR a.id=6921)
AND s.published = 1 AND c.published = 1
ORDER BY rand() LIMIT 0, 4
Got error 28 from storage engine SQL=SELECT a.id, a.catid, a.sectionid AS secid, a.title AS atitle, c.title AS ctitle, s.title AS stitle, a.introtext, a.fulltext, a.created, u.name, a.created_by_alias, a.hits, a.access,
CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug,
CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS catslug
FROM bn_content AS a
INNER JOIN bn_sections AS s ON s.id = a.sectionid
INNER JOIN bn_categories AS c ON c.id = a.catid
LEFT JOIN bn_users AS u ON u.id = a.created_by
WHERE a.state = 1 AND a.sectionid > 0
AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2021-04-11 21:17:34')
AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2021-04-11 21:17:34')
AND s.access <= 0 AND c.access <= 0 AND a.access <= 0 AND (a.id=6025 OR a.id=6909 OR a.id=6929 OR a.id=3500)
AND s.published = 1 AND c.published = 1
ORDER BY rand() LIMIT 0, 4