select
psaer.excel_row_seq as excel_ro1_156_0_,
psaer.excel_row_no as excel_ro2_156_0_,
psaer.prod_info_batch_excel_seq as prod_inf3_156_0_,
psaer.prod_no as prod_no4_156_0_,
psaer.row_msg as row_msg5_156_0_,
psaer.row_status as row_stat6_156_0_,
IF(psaer.prod_no REGEXP '[^[:digit:]]+', NULL, psaer.prod_no) as formula88_0_
from
prod_status_active_excel_row psaer
;
select
prodstatus0_.excel_row_seq as excel_ro1_156_0_,
prodstatus0_.excel_row_no as excel_ro2_156_0_,
prodstatus0_.prod_info_batch_excel_seq as prod_inf3_156_0_,
prodstatus0_.prod_no as prod_no4_156_0_,
prodstatus0_.row_msg as row_msg5_156_0_,
prodstatus0_.row_status as row_stat6_156_0_,
IF(prodstatus0_.`prod_no` prodstatus0_.REGEXP '[^[:digit:]]+',
NULL,
prodstatus0_.prod_no) as formula88_0_
from
prod_status_active_excel_row prodstatus0_
...
The column alias between IF(prodstatus0_.\`prod_no` and REGEX .. seems wrong.