SQLSTATE[42S22]: Column not found: 1054 Unknown column 'N.date_public' in 'where clause'
QUERY: SELECT N.id as id, N.seo as url, N.name as title, C.name as category_name, C.seo as category_url, N.date_created as date_created, I.file as image_url, N.header as header, N.content as content FROM news as N LEFT JOIN categories as C ON N.category_id = C.id LEFT JOIN images as I on N.image_id = I.id WHERE N.status = 1 AND (N.date_public <= NOW() OR N.date_public IS NULL) ORDER BY date_created DESC LIMIT 0, 5
PARAMS:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'N.date_public' in 'where clause'
QUERY: SELECT COUNT(N.id) as number_of_articles FROM news as N WHERE status = 1 AND (N.date_public <= NOW() OR N.date_public IS NULL)
PARAMS:
Notice: Undefined offset: 0 in /var/www/vhosts/salford/sportbox/controllers/NewsController.php on line 15 Salford Red Devils : News

News

Nothing to see here!