ภาพกิจกรรม
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 '-12, 12' at line 15SELECT a.activity_id, a.title, a.icon, a.url, a.title_eng, a.file1, a.read_count, (Select count(*) from `s_activitypic65` b Where a.activity_id=b.activity_id) AS count_pic FROM `s_activity65` a WHERE a.school_id = '65100591' ORDER BY a.post_date DESC LIMIT -12, 12