не прошел запрос: 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 f.forum_id in (45,58,76,77,78,79,88,89,90,107,118,126,127,128,129,130,145' at line 55

SELECT sp_u.topic_id, sp_u.art_id, sp_u.id buy_id, sp_u.user_id, sp_u.color, sp_u.size, sp_u.comments, sp_u.buy_count, sp_u.buy_confirm, sp_u.sp_row_id, sp_u.sp_row_order, sp_r.sp_row_value, f.forum_name, t.topic_title, t.topic_description, u.username, u_org.username org_name, sp_uc.coment_org_uz coment_org_uz, sp_uc.throw_over throw_over, sp_uc.num_place_in_order num_place_in_order, sp_uc.big_gabarit big_gabarit, sp_c.name art_name, sp_uc.sum_pristrom sum_pristrom, sp_uc.sum_delivered sum_delivered, sp_uc.sum_get sum_get, sp_uc.place_get place_get, IFNULL(sp_uc.is_sp_archive, 0) is_sp_archive, IF(sp_uc.place_get, sp_uc.place_get, sp_m.place_get) place_get, IFNULL(sp_uc.sum_delivered, 0) sum_delivered, IFNULL(sp_uc.sum_get, 0) sum_get, IF(sp_uc.org_percent, sp_uc.org_percent, sp_m.org_percent) org_percent, sp_u.buy_count buy_count, sp_u.buy_confirm buy_confirm, sp_u.sp_add_cost sp_add_cost, sp_c.price price, sp_c.img img, sp_m.poster_id org_id, sp_m.transport_percent, sp_m.tax_on_card, sp_m.block_place_get, sp_m.place_get main_place_get_id, sp_m.in_the_name, sp_m.payment_method FROM omskmama_sp_user sp_u LEFT JOIN omskmama_sp_create sp_c ON sp_c.art_id = sp_u.art_id LEFT JOIN omskmama_sp_rows sp_r ON sp_r.sp_row_id = sp_u.sp_row_id LEFT JOIN omskmama_sp_main sp_m ON sp_m.topic_id = sp_c.topic_id LEFT JOIN omskmama_topics t ON t.topic_id = sp_c.topic_id LEFT JOIN omskmama_forums f ON f.forum_id = t.forum_id LEFT JOIN omskmama_sp_user_check sp_uc ON (sp_uc.topic_id = sp_m.topic_id) AND (sp_uc.user_id = 0) LEFT JOIN omskmama_users u ON u.user_id = 0 LEFT JOIN omskmama_users u_org ON u_org.user_id = sp_m.poster_id WHERE sp_u.user_id = 0 AND (sp_u.topic_id in ()) AND f.forum_id in (45,58,76,77,78,79,88,89,90,107,118,126,127,128,129,130,145,146,162,170,180,194,199,216,227,253,264,265,266) ORDER BY sp_u.topic_id DESC