При добавлении галерей:
2019-02-04 17:05:11 : Mysql error 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 'LIMIT 1' at line 1 (SELECT * FROM rot_gallery_data1 WHERE gallery_id = LIMIT 1 )