A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Games_model.php

Line Number: 191

Backtrace:

File: /home/retrodb/domains/retrodb.nl/public_html/application/models/Games_model.php
Line: 191
Function: _error_handler

File: /home/retrodb/domains/retrodb.nl/public_html/application/controllers/Games.php
Line: 70
Function: get_and_update_game_view_count

File: /home/retrodb/domains/retrodb.nl/public_html/application/controllers/Secure_Controller.php
Line: 159
Function: index

File: /home/retrodb/domains/retrodb.nl/public_html/index.php
Line: 315
Function: require_once

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 'AND meta_key = 'barcode'' at line 1

SELECT meta_value FROM games_meta WHERE game_id = AND meta_key = 'barcode'

Filename: models/Games_model.php

Line Number: 55