Andmebaasi viga:
Query = SELECT * FROM rbr_gallery_images WHERE gallery_id=9 AND image_id>=248 LIMIT 0,3 UNION SELECT * FROM rbr_gallery_images WHERE gallery_id=9 AND image_id<248 ORDER BY image_id desc LIMIT 0,5
Error = 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 'UNION SELECT * FROM rbr_gallery_images WHERE galle...' at line 8