A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for General_model::get_comercio_prev(), called in /home/craftbasilea/public_html/application/controllers/Home.php on line 58 and defined

Filename: models/General_model.php

Line Number: 55

Backtrace:

File: /home/craftbasilea/public_html/application/models/General_model.php
Line: 55
Function: _error_handler

File: /home/craftbasilea/public_html/application/controllers/Home.php
Line: 58
Function: get_comercio_prev

File: /home/craftbasilea/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id

Filename: models/General_model.php

Line Number: 58

Backtrace:

File: /home/craftbasilea/public_html/application/models/General_model.php
Line: 58
Function: _error_handler

File: /home/craftbasilea/public_html/application/controllers/Home.php
Line: 58
Function: get_comercio_prev

File: /home/craftbasilea/public_html/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 /home/craftbasilea/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/craftbasilea/public_html/application/models/General_model.php
Line: 60
Function: query

File: /home/craftbasilea/public_html/application/controllers/Home.php
Line: 58
Function: get_comercio_prev

File: /home/craftbasilea/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 MySQL server version for the right syntax to use near 'ORDER BY orden DESC LIMIT 1' at line 1

SELECT url FROM tbl_comercios WHERE categoria = 18 AND orden < ORDER BY orden DESC LIMIT 1

Filename: models/General_model.php

Line Number: 60