A PHP Error was encountered

Severity: Notice

Message: Undefined variable: dbLocation

Filename: models/mindex.php

Line Number: 102

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/nrnteam/site/public_html/fuel/codeigniter/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 438

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nrn_releases`.`id` ORDER BY `release_date` desc, `artist` asc, `nrn_releases`.`t' at line 8

SELECT nrn_releases.title, nrn_releases.title_short, nrn_releases.title_very_short, nrn_releases.art, nrn_releases.remove_for_retail, nrn_releases.release_date, nrn_releases.slug, nrn_artists.name AS artist, nrn_artists.slug AS artist_slug, nrn_artists.name_short AS artist_short, nrn_labels.name AS label, nrn_labels.name_short AS label_short FROM (`nrn_releases`) LEFT JOIN `nrn_artists` ON `nrn_artists`.`id` = `nrn_releases`.`artist_id` LEFT JOIN `nrn_labels` ON `nrn_labels`.`id` = `nrn_releases`.`label_id` INNER JOIN `nrn_tracks` ON `nrn_tracks`.`release_id` = `nrn_releases`.`id` WHERE `published` = 'yes' AND `release_date` <= '2016-05-25' AND ` LIKE '%12%' GROUP BY `nrn_releases`.`id` ORDER BY `release_date` desc, `artist` asc, `nrn_releases`.`title` asc

Filename: models/mindex.php

Line Number: 116