A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: models/Vidione_model.php

Line Number: 215

Backtrace:

File: /home/viddle/public_html/site/application/models/Vidione_model.php
Line: 215
Function: _error_handler

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 390
Function: getRelated

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 253
Function: getVideo

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 20
Function: prepareVideo

File: /home/viddle/public_html/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/viddle/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/viddle/public_html/site/application/models/Vidione_model.php
Line: 226
Function: get

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 390
Function: getRelated

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 253
Function: getVideo

File: /home/viddle/public_html/site/application/controllers/Video.php
Line: 20
Function: prepareVideo

File: /home/viddle/public_html/index.php
Line: 316
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 ') AND `v`.`access` = 1 AND `v`.`status` = 'ready' AND `v`.`expiries` IS NULL AND' at line 3

SELECT * FROM `videos` `v` WHERE `video_key` NOT IN() AND `v`.`access` = 1 AND `v`.`status` = 'ready' AND `v`.`expiries` IS NULL AND `v`.`start` IS NULL OR `v`.`start` < '2024-11-19 01:28:59' OR `v`.`expiries` > '2024-11-19 01:28:59' ORDER BY RAND() LIMIT 15

Filename: models/Vidione_model.php

Line Number: 226