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 'AND I.`id` <> 1186 AND U.`status` = 1 ORDER BY `date` DESC' at line 12

SELECT SQL_CALC_FOUND_ROWS I.*, C.`title` AS `campaign`, U.`f_name`, U.`l_name`, CONCAT(U.`f_name`,' ',U.`l_name`) AS `full_name` FROM `ci_campaign_items` I LEFT JOIN `ci_campaigns` C ON I.`campaign_id` = C.`id` LEFT JOIN `ci_users` U ON I.`user_id` = U.`user_id` WHERE I.`user_id` = AND I.`id` <> 1186 AND U.`status` = 1 ORDER BY `date` DESC

Filename: /home/pepsiper/public_html/modules/campaigns/models/campaign_model.php

Line Number: 79