SQL was missing gallery column prefix