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 `active` = 1 AND `user_id` = '213' AND (`end_date` >= '2024-03-28' OR `end' at line 3

SELECT * FROM `products` WHERE p_category IN () AND `active` = 1 AND `user_id` = '213' AND (`end_date` >= '2024-03-28' OR `end_date` IS NULL)

Filename: models/Shop_model.php

Line Number: 30