Move SQL vote conditions into join condition, add deleted_at for dish_images conditions