text: 
  SET @iFirstColumn = (SELECT COUNT(*) FROM `sys_page_compose` WHERE `Page` = 'bx_pfw_cart' AND `Column` = 1);
  UPDATE `sys_page_compose` SET `Column` = `Column` - 1 WHERE `Page` = 'bx_pfw_cart' AND `Column` != 0 AND @iFirstColumn = 0;
  
  SET @iFirstColumn = (SELECT COUNT(*) FROM `sys_page_compose` WHERE `Page` = 'bx_pfw_history' AND `Column` = 1);
  UPDATE `sys_page_compose` SET `Column` = `Column` - 1 WHERE `Page` = 'bx_pfw_history' AND `Column` != 0 AND @iFirstColumn = 0;
  
  SET @iFirstColumn = (SELECT COUNT(*) FROM `sys_page_compose` WHERE `Page` = 'bx_pfw_orders' AND `Column` = 1);
  UPDATE `sys_page_compose` SET `Column` = `Column` - 1 WHERE `Page` = 'bx_pfw_orders' AND `Column` != 0 AND @iFirstColumn = 0;
  
  SET @iFirstColumn = (SELECT COUNT(*) FROM `sys_page_compose` WHERE `Page` = 'bx_pfw_details' AND `Column` = 1);
  UPDATE `sys_page_compose` SET `Column` = `Column` - 1 WHERE `Page` = 'bx_pfw_details' AND `Column` != 0 AND @iFirstColumn = 0;
  
  