A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: controllers/Home.php

Line Number: 143

Backtrace:

File: /home/cd8be18vzwmz/public_html/application/controllers/Home.php
Line: 143
Function: _error_handler

File: /home/cd8be18vzwmz/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 '' at line 1

SELECT * FROM `galleries_subcat` where gyear='16%7C302' AND galleries_cat=

Filename: models/Admin_model.php

Line Number: 31