| The Official Office Guide to Purchasing Nuclear Weapons |
|
|
|
| Economics - Technology | |||
| Written by Maie Crumpton | |||
|
MySQL server has gone away SQL=SELECT a.*, u.name, cc.image AS image, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug,'link' as link
FROM maintm_content AS a
LEFT JOIN maintm_content_frontpage AS f ON f.content_id = a.id
LEFT JOIN maintm_users AS u ON u.id = a.created_by
INNER JOIN maintm_categories AS cc ON cc.id = a.catid
INNER JOIN maintm_sections AS s ON s.id = a.sectionid
WHERE ( a.state = 1 AND a.sectionid > 0 )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-02-08 21:00:32')
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-02-08 21:00:32' )
AND a.access <= 0 AND cc.access <= 0 AND s.access <= 0
AND ( a.catid=67 OR a.catid=61 OR a.catid=39 OR a.catid=52 OR a.catid=70 )
AND ( a.sectionid=7 )
AND ((TO_DAYS('2012-02-08') - TO_DAYS(a.created)) <= '12000')
AND s.published = 1
AND cc.published = 1
ORDER BY RAND() DESC
limit 0,6



