Prijava
Najnovije vesti
No valid database connection Incorrect DATETIME value: '0000-00-00 00:00:00' SQL=SELECT a.*, u.name, u.username, 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 cms_content AS a LEFT JOIN cms_content_frontpage AS f ON f.content_id = a.id LEFT JOIN cms_users AS u ON u.id = a.created_by INNER JOIN cms_categories AS cc ON cc.id = a.catid INNER JOIN cms_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 <= '2024-11-21 06:48:21') AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-11-21 06:48:21' ) AND a.access <= 0 AND cc.access <= 0 AND s.access <= 0 AND ( a.catid=2 ) AND ( a.sectionid=1 ) AND ((TO_DAYS('2024-11-21') - TO_DAYS(a.created)) <= '5000') AND s.published = 1 AND cc.published = 1 ORDER BY a.created DESC limit 0,5Incorrect DATETIME value: '0000-00-00 00:00:00' SQL=SELECT a.*, u.name, u.username, 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 cms_content AS a LEFT JOIN cms_content_frontpage AS f ON f.content_id = a.id LEFT JOIN cms_users AS u ON u.id = a.created_by INNER JOIN cms_categories AS cc ON cc.id = a.catid INNER JOIN cms_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 <= '2024-11-21 06:48:21') AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-11-21 06:48:21' ) AND a.access <= 0 AND cc.access <= 0 AND s.access <= 0 AND ( a.catid=2 ) AND ( a.sectionid=1 ) AND ((TO_DAYS('2024-11-21') - TO_DAYS(a.created)) <= '5000') AND s.published = 1 AND cc.published = 1 ORDER BY a.created DESC limit 0,5