A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'proj_id' of non-object

Filename: controllers/Projects.php

Line Number: 28

Backtrace:

File: /homepages/43/d224271071/htdocs/marco2/application/controllers/Projects.php
Line: 28
Function: _error_handler

File: /homepages/43/d224271071/htdocs/marco2/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /homepages/43/d224271071/htdocs/marco2/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 564

Backtrace:

File: /homepages/43/d224271071/htdocs/marco2/application/models/Gallery_model.php
Line: 18
Function: query

File: /homepages/43/d224271071/htdocs/marco2/application/controllers/Projects.php
Line: 31
Function: getGalleryById

File: /homepages/43/d224271071/htdocs/marco2/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 MySQL server version for the right syntax to use near 'AND ga_elimina =0 AND ga_active =1 ORDER BY ga_order ASC' at line 3

SELECT * FROM gallery WHERE proj_id = AND ga_elimina =0 AND ga_active =1 ORDER BY ga_order ASC

Filename: models/Gallery_model.php

Line Number: 18