SELECTf0_.idASid_0,f0_.session_idASsession_id_1,f0_.statusASstatus_2,f0_.customer_typeAScustomer_type_3,f0_.amountASamount_4,f0_.bonus_amountASbonus_amount_5,f0_.quantityASquantity_6,f0_.card_typeAScard_type_7,f0_.greeting_titleASgreeting_title_8,f0_.greeting_messageASgreeting_message_9,f0_.first_nameASfirst_name_10,f0_.last_nameASlast_name_11,f0_.emailASemail_12,f0_.phoneASphone_13,f0_.company_nameAScompany_name_14,f0_.vat_numberASvat_number_15,f0_.shipping_same_as_billingASshipping_same_as_billing_16,f0_.stripe_session_idASstripe_session_id_17,f0_.stripe_payment_intent_idASstripe_payment_intent_id_18,f0_.stripe_paid_atASstripe_paid_at_19,f0_.stripe_payment_methodASstripe_payment_method_20,f0_.stripe_refunded_atASstripe_refunded_at_21,f0_.stripe_refund_idASstripe_refund_id_22,f0_.stripe_refund_amountASstripe_refund_amount_23,f0_.accepted_termsASaccepted_terms_24,f0_.accepted_privacyASaccepted_privacy_25,f0_.resume_tokenASresume_token_26,f0_.resume_token_sent_atASresume_token_sent_at_27,f0_.created_atAScreated_at_28,f0_.updated_atASupdated_at_29,f0_.completed_atAScompleted_at_30,f0_.locked_atASlocked_at_31,f0_.product_digital_idASproduct_digital_id_32,f0_.product_analog_idASproduct_analog_id_33,f0_.product_template_idASproduct_template_id_34,f0_.billing_address_idASbilling_address_id_35,f0_.shipping_address_idASshipping_address_id_36,f0_.shipping_option_idASshipping_option_id_37FROMfrontend_card_orderf0_WHEREf0_.session_id=?ANDf0_.statusNOTIN (?,?) ORDER BYf0_.created_atDESCLIMIT1
SELECTf0_.idASid_0,f0_.session_idASsession_id_1,f0_.statusASstatus_2,f0_.customer_typeAScustomer_type_3,f0_.amountASamount_4,f0_.bonus_amountASbonus_amount_5,f0_.quantityASquantity_6,f0_.card_typeAScard_type_7,f0_.greeting_titleASgreeting_title_8,f0_.greeting_messageASgreeting_message_9,f0_.first_nameASfirst_name_10,f0_.last_nameASlast_name_11,f0_.emailASemail_12,f0_.phoneASphone_13,f0_.company_nameAScompany_name_14,f0_.vat_numberASvat_number_15,f0_.shipping_same_as_billingASshipping_same_as_billing_16,f0_.stripe_session_idASstripe_session_id_17,f0_.stripe_payment_intent_idASstripe_payment_intent_id_18,f0_.stripe_paid_atASstripe_paid_at_19,f0_.stripe_payment_methodASstripe_payment_method_20,f0_.stripe_refunded_atASstripe_refunded_at_21,f0_.stripe_refund_idASstripe_refund_id_22,f0_.stripe_refund_amountASstripe_refund_amount_23,f0_.accepted_termsASaccepted_terms_24,f0_.accepted_privacyASaccepted_privacy_25,f0_.resume_tokenASresume_token_26,f0_.resume_token_sent_atASresume_token_sent_at_27,f0_.created_atAScreated_at_28,f0_.updated_atASupdated_at_29,f0_.completed_atAScompleted_at_30,f0_.locked_atASlocked_at_31,f0_.product_digital_idASproduct_digital_id_32,f0_.product_analog_idASproduct_analog_id_33,f0_.product_template_idASproduct_template_id_34,f0_.billing_address_idASbilling_address_id_35,f0_.shipping_address_idASshipping_address_id_36,f0_.shipping_option_idASshipping_option_id_37FROMfrontend_card_orderf0_WHEREf0_.session_id=?ANDf0_.statusNOTIN (?,?)
ORDER BYf0_.created_atDESCLIMIT1
SELECTf0_.idASid_0,f0_.session_idASsession_id_1,f0_.statusASstatus_2,f0_.customer_typeAScustomer_type_3,f0_.amountASamount_4,f0_.bonus_amountASbonus_amount_5,f0_.quantityASquantity_6,f0_.card_typeAScard_type_7,f0_.greeting_titleASgreeting_title_8,f0_.greeting_messageASgreeting_message_9,f0_.first_nameASfirst_name_10,f0_.last_nameASlast_name_11,f0_.emailASemail_12,f0_.phoneASphone_13,f0_.company_nameAScompany_name_14,f0_.vat_numberASvat_number_15,f0_.shipping_same_as_billingASshipping_same_as_billing_16,f0_.stripe_session_idASstripe_session_id_17,f0_.stripe_payment_intent_idASstripe_payment_intent_id_18,f0_.stripe_paid_atASstripe_paid_at_19,f0_.stripe_payment_methodASstripe_payment_method_20,f0_.stripe_refunded_atASstripe_refunded_at_21,f0_.stripe_refund_idASstripe_refund_id_22,f0_.stripe_refund_amountASstripe_refund_amount_23,f0_.accepted_termsASaccepted_terms_24,f0_.accepted_privacyASaccepted_privacy_25,f0_.resume_tokenASresume_token_26,f0_.resume_token_sent_atASresume_token_sent_at_27,f0_.created_atAScreated_at_28,f0_.updated_atASupdated_at_29,f0_.completed_atAScompleted_at_30,f0_.locked_atASlocked_at_31,f0_.product_digital_idASproduct_digital_id_32,f0_.product_analog_idASproduct_analog_id_33,f0_.product_template_idASproduct_template_id_34,f0_.billing_address_idASbilling_address_id_35,f0_.shipping_address_idASshipping_address_id_36,f0_.shipping_option_idASshipping_option_id_37FROMfrontend_card_orderf0_WHEREf0_.session_id=''ANDf0_.statusNOTIN ('completed','abandoned') ORDER BYf0_.created_atDESCLIMIT1;