A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for Home::search()

Filename: controllers/home.php

Line Number: 97

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: currentPage

Filename: controllers/home.php

Line Number: 106

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 '-5, 5' at line 9

SELECT `gc`.`cat_name` AS `parent_cat`, `pc`.`cat_name`, `prod`.* FROM ( SELECT * FROM `cms_products` WHERE `online` = 1 AND `deleted` = 0 ) AS `prod` JOIN `cms_productcat` AS `pc` ON `pc`.`id` = `prod`.`prod_cat_id` JOIN `general_category` AS `gc` ON `gc`.`id` = `pc`.`parentcat_id` WHERE `prod_name` LIKE '%%' OR `pc`.`cat_name` LIKE '%%' OR `prod_desc` LIKE '%%' OR `model_no` LIKE '%%' OR `gc`.`cat_name` LIKE '%%' LIMIT -5, 5