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 'OR `model_id` LIKE ) ORDER BY `cars`.`make_id` DESC, `cars`.`model_id` DESC, `ca' at line 6

SELECT DISTINCT *, `cars`.`id` as `id`, `users`.`id` as `users_id`, `cars`.`created_at` as `created_at`, `cars`.`updated_at` as `updated_at` FROM `cars` LEFT JOIN `users` ON `cars`.`user_id` = `users`.`id` WHERE `users`.`active` = 1 AND (`cars`.`is_deleted` =0 OR (`cars`.`is_deleted` = 1 and now() <= DATE_ADD(cars.deleted_at, INTERVAL 7 DAY))) AND (make_id LIKE OR `model_id` LIKE ) ORDER BY `cars`.`make_id` DESC, `cars`.`model_id` DESC, `cars`.`updated_at` desc LIMIT 500

Filename: core/MY_Model.php

Line Number: 195