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 `c`.`points` != 0 GROUP BY name ORDER BY total desc LIMIT 150' at line 6

SELECT u.id, u.image, u.name AS name, count(c.id) AS contributions, SUM(c.points) as total FROM (st_users u) JOIN st_users_groups ug ON ug.user_id = u.id JOIN st_contributions c ON c.ad_agency_id = u.id WHERE `ug`.`group_id` = 2 AND `c`.`period_id` IN () AND `c`.`points` != 0 GROUP BY name ORDER BY total desc LIMIT 150

Filename: /home/3/s/solvtaggen/www/models/tags_model.php

Line Number: 73