Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/class/Theme.php on line 328

Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/class/Config.php on line 112

Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/controller/Main.php on line 856

Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/class/Route.php on line 232
Chyrp: Database Error

Database Error

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'stpetewa_chyr557.chy_posts.created_at' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT DISTINCT YEAR(chy_posts.created_at) AS year,
       MONTH(chy_posts.created_at) AS month,
       chy_posts.created_at AS created_at
FROM chy_posts
WHERE (chy_posts.status = 'public')
GROUP BY YEAR(chy_posts.created_at),
         MONTH(chy_posts.created_at)
ORDER BY chy_posts.created_at DESC


Array
(
    [:status] => public
)
#0 /home/stpetewa/public_html/includes/class/SQL.php(220): Query->__construct(Object(SQL), 'SELECT DISTINCT...', Array, false)
#1 /home/stpetewa/public_html/includes/class/SQL.php(257): SQL->query('SELECT DISTINCT...', Array, false)
#2 /home/stpetewa/public_html/includes/controller/Main.php(286): SQL->select('posts', Array, Array, Array, Array, NULL, NULL, Array)
#3 [internal function]: MainController->archive()
#4 /home/stpetewa/public_html/includes/class/Route.php(115): call_user_func_array(Array, Array)
#5 /home/stpetewa/public_html/index.php(22): Route->init()
#6 {main}

Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/model/Visitor.php on line 77

Notice: Only variable references should be returned by reference in /home/stpetewa/public_html/includes/model/Visitor.php on line 77