A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/publications.php

Line Number: 99

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home4/lcepnemc/public_html/system/codeigniter/core/Exceptions.php:183)

Filename: core/Common.php

Line Number: 497

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY `default_publications_publication`.`publication_year` DESC' at line 4

SELECT `default_publications_publication`.*, `cb_users`.`id` as `created_by||user_id`, `cb_users`.`email` as `created_by||email`, `cb_users`.`username` as `created_by||username`, `profiles`.`display_name` as `created_by||display_name`, `rel_publication_category`.`id` as `publication_category||id`, `rel_publication_category`.`created` as `publication_category||created`, `rel_publication_category`.`updated` as `publication_category||updated`, `rel_publication_category`.`created_by` as `publication_category||created_by`, `rel_publication_category`.`ordering_count` as `publication_category||ordering_count`, `rel_publication_category`.`category_title` as `publication_category||category_title`, `rel_publication_category`.`category_desc` as `publication_category||category_desc` FROM `default_publications_publication` LEFT JOIN `default_users` as `cb_users` ON `cb_users`.`id`=`default_publications_publication`.`created_by` LEFT JOIN `default_profiles` as `profiles` ON `profiles`.`user_id`=`default_publications_publication`.`created_by` LEFT JOIN `default_publications_category` as `rel_publication_category` ON `rel_publication_category`.`id`=`default_publications_publication`.`publication_category` WHERE (publication_category=) ORDER BY `default_publications_publication`.`publication_year` DESC