A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Website.php

Line Number: 339

Backtrace:

File: /home/mylord/public_html/application/controllers/Website.php
Line: 339
Function: _error_handler

File: /home/mylord/public_html/index.php
Line: 317
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 '' at line 1

select * from service_sub_sub_category where catId=

Filename: controllers/Website.php

Line Number: 340