[2026-04-13 06:12:27] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:27] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in WINDOWTECHS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 14 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 14 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:28] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 14 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 14 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 14 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:29] production.INFO: Query error in MODERNHOMESOLUTIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:32] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 06:12:33] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:17] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:19] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 06:23:19] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 07:07:56] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 07:07:56] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 07:14:27] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 07:37:47] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 07:39:46] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 07:55:47] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 07:55:49] production.INFO: Query error in ROLLERFLEX. Error is: SQLSTATE[HY000] [1049] Unknown database 'ROLLERFLEX' (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 08:11:12] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 08:18:26] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 08:34:48] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 08:43:35] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name` from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 51 offset 0) [2026-04-13 08:43:36] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name`, COUNT(*) OVER() AS total_count from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 101 offset 0) [2026-04-13 08:43:40] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, (CASE WHEN ost_relationtype='color' THEN (CASE WHEN ost_stocktype=0 THEN 'Roll' WHEN ost_stocktype=1 THEN 'Cut length' ELSE 'Roll' END) ELSE '-' END) AS `Type` , JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name` from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 51 offset 0) [2026-04-13 08:43:41] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name`, COUNT(*) OVER() AS total_count from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 101 offset 0) [2026-04-13 08:43:42] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name` from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 51 offset 0) [2026-04-13 08:43:43] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name`, COUNT(*) OVER() AS total_count from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 101 offset 0) [2026-04-13 08:43:45] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, (CASE WHEN ost_relationtype='color' THEN (CASE WHEN ost_stocktype=0 THEN 'Roll' WHEN ost_stocktype=1 THEN 'Cut length' ELSE 'Roll' END) ELSE '-' END) AS `Type` , JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name` from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 51 offset 0) [2026-04-13 08:43:46] production.INFO: Query error in TALBOT. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'prod.cd_id' in 'on clause' (SQL: select `cd_id` as `id`, color_sup.sup_id AS supplierid, JSON_VALUE(color_sup.sup_customoizedkeyvalue,'$.436') AS Supplier, IF(cd_colorhasstock = 1, IFNULL(color_stock_totals.color_total_stock, 0), 0) AS 'availablestock', IF(cd_colorhasstock = 1, IFNULL(pending_color_po.pocount,0), 0) AS 'pocount', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, prod.product_name as 'Product Name', JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.218') AS `Color Code`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `colorname`, JSON_VALUE(cd_custmzdcolrdetails,'$.219') AS `Color Name`, JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, (CASE WHEN ost_relationtype='color' THEN (CASE WHEN ost_stocktype=0 THEN 'Roll' WHEN ost_stocktype=1 THEN 'Cut length' ELSE 'Roll' END) ELSE '-' END) AS `Type` , JSON_VALUE(cd_custmzdcolrdetails, '$."219"') AS colorname, `prod`.`pfm_id`, `prod`.`product_name`, COUNT(*) OVER() AS total_count from `bm_colordetails` left join `bm_product_wise_color_option_min_max` on `pcomm_color_id` = `cd_id` and `pcomm_status` = 0 left join `bm_options_length_stocks` on `ost_colorid` = `cd_id` and `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 and CASE WHEN IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.220')),0) > 0 && IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.222')),0) THEN (CASE ost_unittypemetric WHEN 1 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 10 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 2 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 3 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 1000 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 4 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 25.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 8 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 914.4 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) WHEN 9 THEN (CASE IFNULL(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data,'$.226')),0) WHEN 1 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 10 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 10 AS SIGNED), 0) WHEN 2 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) AS SIGNED), 0) WHEN 3 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 1000 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 1000 AS SIGNED), 0) WHEN 4 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 25.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 25.4 AS SIGNED), 0) WHEN 8 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 914.4 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 914.4 AS SIGNED), 0) WHEN 9 THEN CAST(ost_width * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.220')) * 304.8 AS SIGNED), 0) AND CAST(ost_drop * 304.8 AS SIGNED) >= IFNULL(CAST(JSON_UNQUOTE(JSON_EXTRACT(pcomm_data, '$.222')) * 304.8 AS SIGNED), 0) ELSE TRUE END) ELSE TRUE END) ELSE (CASE ost_unittypemetric WHEN 1 THEN ost_width >= "50" AND ost_drop >= "50" WHEN 2 THEN ost_width >= "500" AND ost_drop >= "500" WHEN 3 THEN ost_width >= "0.5" AND ost_drop >= "0.5" WHEN 4 THEN ost_width >= "19.685039370079" AND ost_drop >= "19.685039370079" WHEN 8 THEN ost_width >= "0.54680664916885" AND ost_drop >= "0.54680664916885" WHEN 9 THEN ost_width >= "1.6404199475066" AND ost_drop >= "1.6404199475066" ELSE TRUE END) END left join `bm_fabricdetails` on `cd_fabricmapid` = `fd_id` and `fd_status` = 0 left join (select `optbs_colorid`, SUM(optbs_remainingqty) AS pocount from `bm_optionpurchasetobesents` where `optbs_isfullyreceived` != 1 and `optbs_status` = 0 group by `optbs_colorid`) as `pending_color_po` on `pending_color_po`.`optbs_colorid` = `cd_id` left join `bm_supplier` as `color_sup` on color_sup.sup_id = JSON_VALUE(cd_custmzdcolrdetails, '$.302') and `color_sup`.`sup_status` = 0 left join (select ost_colorid, SUM(ost_remainingquantity) AS color_total_stock from `bm_options_length_stocks` where `ost_relationtype` = color and `ost_status` = 0 and `ost_remainingquantity` > 0 group by `ost_colorid`) as `color_stock_totals` on `color_stock_totals`.`ost_colorid` = `cd_id` left join (select pfm.pfm_colourmapid AS prodcd_id, MAX(pfm.pfm_id) AS pfm_id, GROUP_CONCAT(DISTINCT pi.pi_productname SEPARATOR ', ') AS product_name from `bm_fabriccolourmap` as `pfm` inner join `bm_productgroupmaterialmap` as `pgmm` on `pgmm`.`pgmm_fabriccolormapid` = `pfm`.`pfm_id` and `pgmm`.`pgmm_status` = 0 inner join `bm_productInfo` as `pi` on `pi`.`pi_productid` = `pgmm`.`pgmm_productmapid` where `pfm`.`pfm_status` = 0 group by `pfm`.`pfm_colourmapid`) as `prod` on `prod`.`cd_id` = `cd_id` where `cd_status` = 0 and `cd_mtrlcategid` = 20 and JSON_VALUE(cd_custmzdcolrdetails,'$.302') IS NOT NULL AND JSON_VALUE(cd_custmzdcolrdetails,'$.302') != '' group by `fd_id`, `cd_id` order by `colorname` asc limit 101 offset 0) [2026-04-13 08:54:41] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 08:55:01] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:01:10] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:18:58] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:25:08] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:28:10] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:33:02] production.INFO: Query error in VITENDI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 09:33:02] production.INFO: Query error in AQBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 09:33:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:33:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:33:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:33:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:33:03] production.INFO: Query error in BAILEYS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 39 limit 1) [2026-04-13 09:33:03] production.INFO: Query error in BAILEYS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 39 limit 1) [2026-04-13 09:38:51] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:39:28] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:40:16] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in SUNRITEBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 76 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:46] production.INFO: Query error in GALAXY. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in YORKSHIREBLINDSANDCURTAINS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 26 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 09:57:47] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 09:58:37] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:01:55] production.INFO: Query error in BOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:01:55] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in GOLDCREST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 61 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in SUPPLIER_ARENA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:56] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 16 limit 1) [2026-04-13 10:01:57] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in BOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:01:58] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in GOLDCREST. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 61 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:00] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:01] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 11 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in SUPPLIER_ARENA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:02:02] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SUPPLIER_ARENA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in SIENNASHUTTERSIE. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:02:03] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:04] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 17 limit 1) [2026-04-13 10:02:04] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:02:04] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 7 limit 1) [2026-04-13 10:02:05] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:05] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in BOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in EMANUELSINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:02:06] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in STORTBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:02:07] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 24 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: DROP TEMPORARY TABLE IF EXISTS temp) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in AQBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in UMBRASHADING. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in ABCOMPANY. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 46 limit 1) [2026-04-13 10:04:02] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in UKMANUFACTURING. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 9 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in LEAMINGTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:04:37] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in CITYBLINDSNI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:38] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in HOMECREATIONS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in AFTBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 20 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in ABCOMPANY. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 46 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in LEAMINGTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in LEAMINGTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 37 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 13 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:39] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:40] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:40] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:04:40] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:04:40] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:04:43] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:04:43] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 10 limit 1) [2026-04-13 10:04:43] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:04:44] production.INFO: Query error in REUTHER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 20 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in AQBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 21 limit 1) [2026-04-13 10:05:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in CITYBLINDSNI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in CITYBLINDSNI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in CITYBLINDSNI. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in GRANTSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 9 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:06] production.INFO: Query error in ALLKINDSOFBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in WINDOWTECHS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in WINDOWTECHS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:05:14] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:05:26] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in RAINBOW. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 3 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in UMBRASHADING. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in CPINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 74 limit 1) [2026-04-13 10:08:22] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in PERFA. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in LITTLEHAMPTONBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 12 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in POSNERINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 38 limit 1) [2026-04-13 10:08:23] production.INFO: Query error in MASTER. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 10:21:07] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:22:37] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:29:53] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:35:13] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:35:44] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:47:02] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 10:53:06] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:06:25] production.INFO: Query error in CREATIVECURTAINSSUSSEX. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 5 limit 1) [2026-04-13 11:09:42] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 11:12:01] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[HY000]: General error: 4037 Unexpected end of JSON text in argument 1 to function 'JSON_TABLE' (SQL: select `cci_id` as `id`, IFNULL(ctd_id,0) as customerid, CASE WHEN EXISTS ( SELECT 1 FROM bm_customertemplatedata AS s WHERE s.ctd_hocontactid = cci_id AND s.ctd_headofficetype = 2 AND s.ctd_linktoheadoffice = 1 AND s.ctd_headofficeid = cci_customerid ) THEN 1 ELSE 0 END AS is_des_inv_contact , `ct_display_name` as `Account Type`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `addresspremises`, IF(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83'))='true','Yes','No') AS `Default Contact`, `at_addresstype` as `Address Type`, (CASE WHEN !ISNULL((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))))) THEN ((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86')))) ) ELSE (( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))) )END) as `State / County`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) AS `Address1`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) AS `Zipcode / Postcode`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) AS `Address2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) AS `Town / City`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) AS `Currency`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) AS `Date & Time`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) AS `radiobutton`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) AS `radiobutton2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) AS `Phone1`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `multipleselect6`, TRIM(CONCAT( IFNULL(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue, '$.63')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.77')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.79')), '') )) AS 'Full Name' , JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) AS `Mobile`, `tl_titlename` as `Salutation`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) AS `Phone`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) AS `Last Name`, `cr_rolename` as `Role`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) AS `Email`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')) AS `Company Name`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')) AS `Account Ref` from `bm_customercontactinfo` left join `bm_customertemplatedata` on `ctd_id` = `cci_customerid` and `ctd_status` = 0 left join `bm_customertype` on `ct_id` = JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.61')) left join `bm_addresstype` on `at_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.85')) left join `bm_titlelist` on `tl_titleid` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo,cci_customizedarraydel),'$.75')) left join `bm_contactroles` on `cr_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.81')) where `cci_status` = 0 and ((LOWER(REPLACE(ct_display_name,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83')) ,' ',''))) LIKE %% or (LOWER(REPLACE(at_addresstype,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT state_name FROM bm_statelist WHERE state_id=JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo,'$.86'))),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) ,' ',''))) LIKE %% or (LOWER(REPLACE(tl_titlename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) ,' ',''))) LIKE %% or (LOWER(REPLACE(cr_rolename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')),' ',''))) LIKE %%) order by `id` desc limit 51 offset 0) [2026-04-13 11:12:57] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[HY000]: General error: 4037 Unexpected end of JSON text in argument 1 to function 'JSON_TABLE' (SQL: select `cci_id` as `id`, IFNULL(ctd_id,0) as customerid, CASE WHEN EXISTS ( SELECT 1 FROM bm_customertemplatedata AS s WHERE s.ctd_hocontactid = cci_id AND s.ctd_headofficetype = 2 AND s.ctd_linktoheadoffice = 1 AND s.ctd_headofficeid = cci_customerid ) THEN 1 ELSE 0 END AS is_des_inv_contact , `ct_display_name` as `Account Type`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')) AS `Account Ref`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')) AS `Company Name`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.77')) AS `First Name`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `addresspremises`, `cr_rolename` as `Role`, IF(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83'))='true','Yes','No') AS `Default Contact`, `at_addresstype` as `Address Type`, (CASE WHEN !ISNULL((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))))) THEN ((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86')))) ) ELSE (( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))) )END) as `State / County`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) AS `Address1`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) AS `Zipcode / Postcode`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) AS `Address2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) AS `Town / City`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) AS `Currency`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) AS `Date & Time`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) AS `radiobutton`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) AS `radiobutton2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) AS `Phone1`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `multipleselect6`, TRIM(CONCAT( IFNULL(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue, '$.63')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.77')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.79')), '') )) AS 'Full Name' , JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) AS `Mobile`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) AS `Last Name`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) AS `Email`, `tl_titlename` as `Salutation`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) AS `Phone` from `bm_customercontactinfo` left join `bm_customertemplatedata` on `ctd_id` = `cci_customerid` and `ctd_status` = 0 left join `bm_customertype` on `ct_id` = JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.61')) left join `bm_contactroles` on `cr_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.81')) left join `bm_addresstype` on `at_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.85')) left join `bm_titlelist` on `tl_titleid` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo,cci_customizedarraydel),'$.75')) where `cci_status` = 0 and ((LOWER(REPLACE(ct_display_name,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.77')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(cr_rolename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83')) ,' ',''))) LIKE %% or (LOWER(REPLACE(at_addresstype,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT state_name FROM bm_statelist WHERE state_id=JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo,'$.86'))),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) ,' ',''))) LIKE %% or (LOWER(REPLACE(tl_titlename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) ,' ',''))) LIKE %%) and JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(ctd_customoizedkeyvalue,JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo)),'$.77')) LIKE %Test% order by `id` desc limit 51 offset 0) [2026-04-13 11:13:06] production.INFO: Query error in TESTING3TEST. Error is: SQLSTATE[HY000]: General error: 4037 Unexpected end of JSON text in argument 1 to function 'JSON_TABLE' (SQL: select `cci_id` as `id`, IFNULL(ctd_id,0) as customerid, CASE WHEN EXISTS ( SELECT 1 FROM bm_customertemplatedata AS s WHERE s.ctd_hocontactid = cci_id AND s.ctd_headofficetype = 2 AND s.ctd_linktoheadoffice = 1 AND s.ctd_headofficeid = cci_customerid ) THEN 1 ELSE 0 END AS is_des_inv_contact , `ct_display_name` as `Account Type`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `addresspremises`, IF(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83'))='true','Yes','No') AS `Default Contact`, `at_addresstype` as `Address Type`, (CASE WHEN !ISNULL((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))))) THEN ((SELECT state_name FROM bm_statelist WHERE state_id = ( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86')))) ) ELSE (( JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo, '$.86'))) )END) as `State / County`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) AS `Address1`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) AS `Zipcode / Postcode`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) AS `Address2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) AS `Town / City`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) AS `Currency`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) AS `Date & Time`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) AS `radiobutton`, (SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) AS `radiobutton2`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) AS `Phone1`, (SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) AS `multipleselect6`, TRIM(CONCAT( IFNULL(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue, '$.63')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.77')), ''), ' ', IFNULL(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray, cci_addressinfo), '$.79')), '') )) AS 'Full Name' , JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) AS `Mobile`, `tl_titlename` as `Salutation`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) AS `Phone`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) AS `Last Name`, `cr_rolename` as `Role`, JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) AS `Email`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')) AS `Company Name`, JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')) AS `Account Ref` from `bm_customercontactinfo` left join `bm_customertemplatedata` on `ctd_id` = `cci_customerid` and `ctd_status` = 0 left join `bm_customertype` on `ct_id` = JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.61')) left join `bm_addresstype` on `at_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.85')) left join `bm_titlelist` on `tl_titleid` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo,cci_customizedarraydel),'$.75')) left join `bm_contactroles` on `cr_id` = JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.81')) where `cci_status` = 0 and ((LOWER(REPLACE(ct_display_name,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 769 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.769'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.83')) ,' ',''))) LIKE %% or (LOWER(REPLACE(at_addresstype,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT state_name FROM bm_statelist WHERE state_id=JSON_UNQUOTE(JSON_EXTRACT(cci_addressinfo,'$.86'))),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.87')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.88')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.89')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.91')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.92')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.760')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 762 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.762')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT optionsvalue.name FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 797 AND optionsvalue.id=JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.797')) ) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.798')) ,' ',''))) LIKE %% or (LOWER(REPLACE((SELECT GROUP_CONCAT(optionsvalue.name) FROM `bm_predefinedlabels`, JSON_TABLE( pfl_optionsvalue, '$[*]' COLUMNS( ID VARCHAR(40) PATH '$.id', NAME VARCHAR(40) PATH '$.label' ) ) optionsvalue WHERE pfl_id = 799 AND JSON_SEARCH(LOWER(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.799'))), 'all', optionsvalue.id, NULL) IS NOT NULL) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.78')) ,' ',''))) LIKE %% or (LOWER(REPLACE(tl_titlename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.76')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.79')) ,' ',''))) LIKE %% or (LOWER(REPLACE(cr_rolename,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(JSON_MERGE_PRESERVE(cci_customizedarray,cci_addressinfo),'$.82')) ,' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.63')),' ',''))) LIKE %% or (LOWER(REPLACE(JSON_UNQUOTE(JSON_EXTRACT(ctd_customoizedkeyvalue,'$.62')),' ',''))) LIKE %%) order by `id` desc limit 51 offset 0) [2026-04-13 11:17:02] production.INFO: Query error in TALBOT. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 8 limit 1) [2026-04-13 11:17:02] production.INFO: Query error in ANDERSONINTERIORS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 11:37:02] production.INFO: Query error in KENLOW. Error is: SQLSTATE[HY000] [1049] Unknown database 'KENLOW' (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 12:09:52] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 12:30:44] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 12:31:00] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 12:31:02] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 12:31:02] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 12:32:15] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 12:41:57] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 12:48:40] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 13:03:17] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 13:27:26] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 13:52:35] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:10:19] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:14:08] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:16:26] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:22:01] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 14:22:01] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 14:22:01] production.INFO: Query error in TRADEDOR. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 11 limit 1) [2026-04-13 14:22:01] production.INFO: Query error in BAILEYS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 70 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in CHANNELBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 4 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in GRAMPIAN. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 76 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in AYRSHIREBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 2 limit 1) [2026-04-13 14:22:02] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[08004] [1040] Too many connections (SQL: select * from `bm_users` where `bm_users`.`userid` = 6 limit 1) [2026-04-13 14:33:38] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:39:19] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:48:59] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 14:50:49] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 15:10:21] production.INFO: Query error in LLOYDSBLINDS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 15:24:29] production.INFO: Query error in REUTHER. Error is: SQLSTATE[HY000]: General error: 1114 The table 'temp' is full (SQL: insert into `temp` (`id`, `fabricid`,`colorid`,`fabriclabelid`,`fabricjson`,`colorlabelid`,`colorcode`,`colorjson`) SELECT optbs_id, optbs_fabricid,optbs_colorid,pfl_id,fd_custmzdfabdetails, (select pfl_id from bm_predefinedlabels where pfl_fieldtypeid=optbs_materialid AND pfl_name='Color Name'), (select pfl_id from bm_predefinedlabels where pfl_fieldtypeid=optbs_materialid AND pfl_name='Color Code'), cd_custmzdcolrdetails FROM bm_optionpurchasetobesents JOIN bm_optionpurchases ON ops_id = optbs_purchaseid LEFT JOIN bm_predefinedlabels ON pfl_fieldtypeid=optbs_materialid AND pfl_name='Fabric Name' LEFT JOIN bm_fabricdetails ON fd_id=optbs_fabricid LEFT JOIN bm_colordetails ON cd_id=optbs_colorid where optbs_status = 0 AND ops_submitted = 0 ) [2026-04-13 15:50:59] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 15:56:21] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 16:14:12] production.INFO: Query error in PERFECTBLINDSUK. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 18:58:21] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 19:00:26] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 19:31:01] production.INFO: Query error in WESTCOUNTRY. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 22:57:00] production.INFO: Query error in YOURBLINDSSHOP. Error is: SQLSTATE[HY000] [1049] Unknown database 'YOURBLINDSSHOP' (SQL: select * from `bm_users` where `bm_users`.`userid` = 1 limit 1) [2026-04-13 23:19:38] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:21:26] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:23:15] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:25:21] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:28:52] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:33:38] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:36:14] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:38:32] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:40:02] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:43:54] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:46:55] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined) [2026-04-13 23:50:11] production.INFO: Query error in KAVANAGHS. Error is: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'undefined' in 'on clause' (SQL: select JSON_MERGE(jd_jobcustomoizedkeyvalue,jd_deletedcustokeyvalue) AS customoizedarray, `jd_customerid` as `customerid`, `jd_contactid` as `contactid`, `jd_id` as `id`, `jd_jobref` as `orderid`, `jd_createddate` as `createddate`, `jd_orderdate` as `orderdate`, `jd_invoicedate` as `invoicedate`, `jd_completeddate` as `completeddate`, `jd_seq` as `seq`, `jd_status` as `status`, `jd_contactaddid` as `contactaddressid`, `jd_templateid` as `templateid`, `jd_createdby` as `createdby`, `jd_accref` as `accref`, IF(jd_invoiceno=0,"",jd_invoiceno) AS invoiceno, `jd_accref` as `accref`, `jd_orderstatus` as `orderstatus`, `jd_jobstatus` as `jobstatus`, `defaultsalestaxlabel`, `organization_id` as `organizationid`, `jmq_id` as `pivotId`, `jmq_duedate` as `duedate`, `jmq_sceduleddate` as `sceduleddate`, `jmq_listprice` as `listprice`, `jmq_netprice` as `netprice`, `jmq_vat` as `vat`, `jmq_isvaton` as `isvaton`, `jmq_deliverycost` as `deliverycost`, `jmq_deliverycosttypeid` as `deliverycosttypeid`, `jmq_deliverycostid` as `deliverycostid`, `jmq_overridetypeid` as `orderformtypeid`, `jmq_orderformprice` as `orderformprice`, `jmq_editpricebyid` as `editpricebyid`, `jmq_isroundon` as `isroundon`, `jmq_grossprice` as `grossprice`, `jmq_grossprofit` as `grossprofit`, `jmq_costprice` as `totcostprice`, `jmq_amountoutstanding` as `amountoutstanding`, `jmq_totpaid` as `totpaid`, `jmq_creditlimit` as `creditlimit`, `jmq_creditbalance` as `creditbalance`, `jmq_overdue` as `overdue`, `jmq_userdefinedarray` as `userdefinedarray`, `jmq_overrideprice` as `overrideprice`, `jmq_overridenetprice` as `overridenetprice`, `jmq_overridevatprice` as `overridevatprice`, `jmq_overridegrossprice` as `overridegrossprice`, `jmq_iscostpriceon` as `iscostpriceon`, `jmq_isonlineorder` as `isonlineorder`, `jmq_isonlineordersubmitted` as `submittedjob`, `jmq_endcustomervatprice` as `endcustomervatprice`, `jmq_endcustomeroverridetype` as `endcustomeroverridetype`, `jmq_endcustomeroverridevalue` as `endcustomeroverridevalue`, `jmq_endcustomeroverridenetprice` as `endcustomeroverridenetprice`, `jmq_endcustomeroverridevatprice` as `endcustomeroverridevatprice`, `jmq_endcustomeroverridegrossprice` as `endcustomeroverridegrossprice`, `jmq_endcustomerdeliverycost` as `endcustomerdeliverycost`, `jmq_endcustomerdeliverycostinclvat` as `endcustomerdeliverycostinclvat`, `jmq_endcustomerfittingcost` as `endcustomerfittingcost`, `jmq_endcustomerfittingcostinclvat` as `endcustomerfittingcostinclvat`, `jmq_commissionaddedvalue` as `commissionaddedvalue `, `jmq_onlinedeliveryaddreddtype` as `onlinedeliveryaddreddtype`, IF(jmq_overridetypeid=5,jmq_overrideprice,IF(jmq_overridetypeid=4,(jmq_listprice * jmq_overrideprice)/100,0)) AS discamt, `jmq_grossprofit_percentage` as `grossprofitpercentage` from `bm_jobdetails` inner join `bm_jobmultiquote` on `jmq_jobid` = undefined left join `bm_organizationdetails` on `organization_id` = JSON_UNQUOTE(JSON_EXTRACT(jd_jobcustomoizedkeyvalue,'$.33')) where `jd_id` = undefined and `jd_status` = 0 and `jmq_id` = undefined)