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 ') GROUP BY p_id' at line 3
SELECT p_id,SUBSTRING_INDEX(GROUP_CONCAT('https://www.gplace.com/include/img_gal/',img), ',', 7) as photogal FROM gp_gallery WHERE p_id IN () GROUP BY p_id
Filename: /home/gplace/public_html/models/gp_v2_model.php
Line Number: 825