SELECT * FROM galleries JOIN gallery_images ON gallery_images.post_id = galleries.gallery_id WHERE galleries.post_id = '71154' AND file_name<>'' ORDER BY order_id ASC, gallery_images.id desc
Query execution was interrupted