A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: controllers/Car.php

Line Number: 25

Backtrace:

File: /newdata/vhosts/exclusive.co.th/httpdocs/application/controllers/Car.php
Line: 25
Function: _error_handler

File: /newdata/vhosts/exclusive.co.th/httpdocs/index.php
Line: 329
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 status = 1' at line 1

SELECT * FROM booking WHERE carforrent_id = AND status = 1

Filename: models/M_core.php

Line Number: 18