Notice: Trying to get property of non-object in /srv/data/web/vhosts/ on line 42

Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 'AND display = '1' ORDER BY rank ASC' at line 14 in /srv/data/web/vhosts/ Stack trace: #0 /srv/data/web/vhosts/ PDOStatement->execute(Array) #1 /srv/data/web/vhosts/ Core\Database\MysqlDatabase->prepare('SELECT\n ...', Array, 'Core\\Entity', false) #2 /srv/data/web/vhosts/ Core\Database\Mysql->query('SELECT\n ...', Array, false) #3 /srv/data/web/vhosts/ Core\Models\Abyss\Product->get(Array) #4 /srv/data/web/vhosts/ in /srv/data/web/vhosts/ on line 156