Main query [
SELECT sql_calc_found_rows
i.*, p.create_time as post_time, i.image_file_id AS selected_image_file_id,
f.*
FROM
image_groups g,
image_files f,
images i
LEFT JOIN
post_images p ON p.image_id = i.image_id
WHERE
(i.image_file_id = f.image_file_id)
AND
(g.group_id IN ())
AND
(g.image_id = i.image_id)
GROUP BY
i.image_id
ORDER BY g.update_time desc LIMIT 4096 OFFSET 0
] failed: 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
(g.image_id = i.image_id)
GROUP BY
i.image_id
ORDER BY g.u...' at line 13