A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/institution.php

Line Number: 367

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/institution.php

Line Number: 368

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/institution.php

Line Number: 369

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/institution.php

Line Number: 370

Database Error

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 'GROUP BY `artist`.`id` ORDER BY `ranking_1` desc LIMIT 10' at line 9

SELECT `artist`.`id`, `artist`.`old_id`, `artist`.`user_id`, `artist`.`name`, `artist`.`first_name`, `artist`.`birth`, `artist`.`sex`, `artist`.`nationality`, `artist`.`nationality_2`, `artist`.`a_city` as city, `artist`.`email`, `artist`.`web`, `artist`.`a_phone` as phone, `artist`.`a_category` as category, `artist`.`slug`, `artist`.`ranking_1`, `artist`.`fullname`, `artist`.`cv`, `pictures`.`filename`, `pictures`.`id` as picture_id, `pictures`.`caption` FROM (`artist`) LEFT JOIN `appearance` ON `appearance`.`artist_id` = `artist`.`id` LEFT JOIN `pictures` ON `pictures`.`artist_id` = `artist`.`id` WHERE `nationality` IS NULL AND `ranking_1` between 0 and 0 AND `a_category` IS NULL AND `artist`.`id` != GROUP BY `artist`.`id` ORDER BY `ranking_1` desc LIMIT 10

Filename: /var/www/vhosts/lvps5-35-247-12.dedicated.hosteurope.de/httpdocs/models/artist_model.php

Line Number: 197