|
Error in class CDbDriver, function Select() |
Got error 28 from storage engine Q:
SELECT href,
YEAR(date) AS year,
DAY(date) AS day,
SUBSTR(date,6,2) AS month,
SUBSTR(date,12,5) AS time,
title,
COUNT(*)-1 AS count,
id AS mess_id
FROM(
SELECT f.id,
f.first_id,
eh.href AS href,
eh.date AS date,
( SELECT eh.about
FROM forum AS f2
LEFT JOIN expert_hrefs AS eh ON ( eh.id = f2.href_id )
WHERE f2.level_id='' AND f2.first_id=f.first_id AND eh.is_show =1
) AS title
FROM forum AS f
LEFT JOIN expert_hrefs AS eh ON ( eh.id = f.href_id )
WHERE f.first_id IN
(
SELECT f3.first_id
FROM forum AS f3
LEFT JOIN expert_hrefs AS eh ON ( eh.id = f3.href_id )
LEFT JOIN expert_href_chains hc ON ( eh.id=hc.href_id )
WHERE 1 AND eh.is_show=1 AND eh.section_id=7
)
ORDER BY f.id DESC
) t
GROUP BY first_id
ORDER BY id DESC
LIMIT 10 |
|