A PHP Error was encountered

Severity: Notice

Message: Undefined variable: tableName

Filename: models/Extra_model.php

Line Number: 145

Backtrace:

File: /home/mobilitycomparec/public_html/application/models/Extra_model.php
Line: 145
Function: _error_handler

File: /home/mobilitycomparec/public_html/application/controllers/Mattress.php
Line: 20
Function: getLinks

File: /home/mobilitycomparec/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 'WHERE status = 1 order by id ASC' at line 1

select heading,text, link as elink from WHERE status = 1 order by id ASC

Filename: models/Extra_model.php

Line Number: 147