A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/loadingr/site_CI_2.1.0/application/libraries/layout.php:37)

Filename: core/Common.php

Line Number: 438

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 '%3Fsearch%3Dcelestial%2Bsea LIMIT 30' at line 7

SELECT videos.*, categories.class, categories.name as cat_name, hosts.rss_option, hosts.iphone_option FROM (`videos`) JOIN `categories` ON `videos`.`category_id`=`categories`.`id` JOIN `hosts` ON `hosts`.`id`=`videos`.`host_id` WHERE (`videos`.`title` LIKE '%%' OR `videos`.`description` LIKE '%%') AND `categories`.`class` NOT IN ('drop', 'db') ORDER BY `date` desc%3Fsearch%3Dcelestial%2Bsea LIMIT 30

Filename: models/videos_model.php

Line Number: 122