#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 'Call GetAlltopic22('2,996,1035,1036,1037,1038,1032,1033,1034,42,97,104',42,2,0,0' at line 5
โค้ด: เลือกทั้งหมด
SELECT t.topic_id,t.topic_title,t.topic_poster,t.topic_time,t.topic_views,t.topic_first_post_id,t.topic_first_poster_name
,t.topic_first_poster_colour,t.topic_last_post_id,t.topic_last_poster_id,t.topic_posts_approved,t.topic_posts_unapproved
,t.topic_posts_softdeleted,t.topic_status,t.topic_type,t.topic_last_post_subject,t.topic_last_poster_colour
,t.poll_start,t.topic_last_poster_name,t.topic_last_post_time,t.topic_last_view_time,t.forum_id FROM
(phpbb_topics t) WHERE t.topic_id IN ( Call GetAlltopic22('2,996,1035,1036,1037,1038,1032,1033,1034,42,97,104',42,2,0,0)) AND t.topic_posts_unapproved != 1 ORDER BY t.topic_last_post_time
DESC