Error

 
[Exception, 0] 
Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'site_master_template.products_id' in 'where clause' in /home/xumbaprinting/public_html/lib/Classes/Models/RMasterModel.php:89 Stack trace: #0 /home/xumbaprinting/public_html/model/TemplateMaster.php(650): RMasterModel->exec_query() #1 /home/xumbaprinting/public_html/templates/include/twig_functions.php(1702): TemplateMaster->get_template_details_filter() #2 /home/xumbaprinting/public_html/product_designs.php(114): getTemplateRecords() #3 {main}
@line 702 in file /home/xumbaprinting/public_html/lib/Classes/Models/RMasterModel.php

Debug Backtrace

#1 RMasterModel.php:91 -- RMasterModel->displayException()
#2 TemplateMaster.php:650 -- RMasterModel->exec_query()
#3 twig_functions.php:1702 -- TemplateMaster->get_template_details_filter()
#4 product_designs.php:114 -- getTemplateRecords()

Last Query :

SELECT SQL_CALC_FOUND_ROWS count(DISTINCT site_master_template.template_id) as site_total, 0 as 'master_total',site_master_template.template_language_ids,GROUP_CONCAT(site_master_template.color,'') as color,GROUP_CONCAT(DISTINCT site_master_template.orientation,'') as orientation FROM site_master_template LEFT JOIN site_master_template_description ON site_master_template_description.template_id = site_master_template.template_id AND ( site_master_template_description.site_language_id =1 OR site_master_template_description.site_language_id IS NULL) RIGHT JOIN products ON products.products_id=site_master_template.products_id LEFT JOIN product_category ON product_category.category_id=products.category_id WHERE site_master_template.status = '1' AND (site_master_template.products_id = 233 OR site_master_template.duplicate_product_id LIKE '%,233-%') AND ((site_master_template.user_type_id IN ('0', '1') AND (site_master_template.user_ids = ''))) AND ( site_master_template.studiodata !='') AND (site_master_template.size_id IN ('1004', '1021', '1022', '1023', '1024', '1013', '1017', '1019', '1010', '1018', '1011', '1014', '1015', '1025', '1020', '1012', '1016', '1026', '1006', '1005', '1007', '1008', '1009') OR site_master_template.duplicate_product_id LIKE '%-1004,%' OR site_master_template.duplicate_product_id LIKE '%-1021,%' OR site_master_template.duplicate_product_id LIKE '%-1022,%' OR site_master_template.duplicate_product_id LIKE '%-1023,%' OR site_master_template.duplicate_product_id LIKE '%-1024,%' OR site_master_template.duplicate_product_id LIKE '%-1013,%' OR site_master_template.duplicate_product_id LIKE '%-1017,%' OR site_master_template.duplicate_product_id LIKE '%-1019,%' OR site_master_template.duplicate_product_id LIKE '%-1010,%' OR site_master_template.duplicate_product_id LIKE '%-1018,%' OR site_master_template.duplicate_product_id LIKE '%-1011,%' OR site_master_template.duplicate_product_id LIKE '%-1014,%' OR site_master_template.duplicate_product_id LIKE '%-1015,%' OR site_master_template.duplicate_product_id LIKE '%-1025,%' OR site_master_template.duplicate_product_id LIKE '%-1020,%' OR site_master_template.duplicate_product_id LIKE '%-1012,%' OR site_master_template.duplicate_product_id LIKE '%-1016,%' OR site_master_template.duplicate_product_id LIKE '%-1026,%' OR site_master_template.duplicate_product_id LIKE '%-1006,%' OR site_master_template.duplicate_product_id LIKE '%-1005,%' OR site_master_template.duplicate_product_id LIKE '%-1007,%' OR site_master_template.duplicate_product_id LIKE '%-1008,%' OR site_master_template.duplicate_product_id LIKE '%-1009,%') AND (site_master_template.template_language_ids = '0' OR FIND_IN_SET('1',site_master_template.template_language_ids))

Prepared Statement :

SELECT SQL_CALC_FOUND_ROWS count(DISTINCT site_master_template.template_id) as site_total, 0 as 'master_total',site_master_template.template_language_ids,GROUP_CONCAT(site_master_template.color,'') as color,GROUP_CONCAT(DISTINCT site_master_template.orientation,'') as orientation FROM site_master_template LEFT JOIN site_master_template_description ON site_master_template_description.template_id = site_master_template.template_id AND ( site_master_template_description.site_language_id =:smtd_site_language_id OR site_master_template_description.site_language_id IS NULL) RIGHT JOIN products ON products.products_id=site_master_template.products_id LEFT JOIN product_category ON product_category.category_id=products.category_id WHERE site_master_template.status = :site_master_template_status AND (site_master_template.products_id = :smt_products_id OR site_master_template.duplicate_product_id LIKE :smt_dup_product_id) AND ((site_master_template.user_type_id IN (:input_34, :input_35) AND (site_master_template.user_ids = :user_ids_2752477520240919134535))) AND ( site_master_template.studiodata !='') AND (site_master_template.size_id IN (:input_36, :input_37, :input_38, :input_39, :input_40, :input_41, :input_42, :input_43, :input_44, :input_45, :input_46, :input_47, :input_48, :input_49, :input_50, :input_51, :input_52, :input_53, :input_54, :input_55, :input_56, :input_57, :input_58) OR site_master_template.duplicate_product_id LIKE :smt_product_id1 OR site_master_template.duplicate_product_id LIKE :smt_product_id2 OR site_master_template.duplicate_product_id LIKE :smt_product_id3 OR site_master_template.duplicate_product_id LIKE :smt_product_id4 OR site_master_template.duplicate_product_id LIKE :smt_product_id5 OR site_master_template.duplicate_product_id LIKE :smt_product_id6 OR site_master_template.duplicate_product_id LIKE :smt_product_id7 OR site_master_template.duplicate_product_id LIKE :smt_product_id8 OR site_master_template.duplicate_product_id LIKE :smt_product_id9 OR site_master_template.duplicate_product_id LIKE :smt_product_id10 OR site_master_template.duplicate_product_id LIKE :smt_product_id11 OR site_master_template.duplicate_product_id LIKE :smt_product_id12 OR site_master_template.duplicate_product_id LIKE :smt_product_id13 OR site_master_template.duplicate_product_id LIKE :smt_product_id14 OR site_master_template.duplicate_product_id LIKE :smt_product_id15 OR site_master_template.duplicate_product_id LIKE :smt_product_id16 OR site_master_template.duplicate_product_id LIKE :smt_product_id17 OR site_master_template.duplicate_product_id LIKE :smt_product_id18 OR site_master_template.duplicate_product_id LIKE :smt_product_id19 OR site_master_template.duplicate_product_id LIKE :smt_product_id20 OR site_master_template.duplicate_product_id LIKE :smt_product_id21 OR site_master_template.duplicate_product_id LIKE :smt_product_id22 OR site_master_template.duplicate_product_id LIKE :smt_product_id23) AND (site_master_template.template_language_ids = '0' OR FIND_IN_SET(:site_master_template_template_language_ids,site_master_template.template_language_ids))
Params: Array
(
    [:smtd_site_language_id] => 1
    [:site_master_template_status] => 1
    [:smt_products_id] => 233
    [:smt_dup_product_id] => %,233-%
    [:user_ids_2752477520240919134535] => 
    [:smt_product_id1] => %-1004,%
    [:smt_product_id2] => %-1021,%
    [:smt_product_id3] => %-1022,%
    [:smt_product_id4] => %-1023,%
    [:smt_product_id5] => %-1024,%
    [:smt_product_id6] => %-1013,%
    [:smt_product_id7] => %-1017,%
    [:smt_product_id8] => %-1019,%
    [:smt_product_id9] => %-1010,%
    [:smt_product_id10] => %-1018,%
    [:smt_product_id11] => %-1011,%
    [:smt_product_id12] => %-1014,%
    [:smt_product_id13] => %-1015,%
    [:smt_product_id14] => %-1025,%
    [:smt_product_id15] => %-1020,%
    [:smt_product_id16] => %-1012,%
    [:smt_product_id17] => %-1016,%
    [:smt_product_id18] => %-1026,%
    [:smt_product_id19] => %-1006,%
    [:smt_product_id20] => %-1005,%
    [:smt_product_id21] => %-1007,%
    [:smt_product_id22] => %-1008,%
    [:smt_product_id23] => %-1009,%
    [:site_master_template_template_language_ids] => 1
    [:input_34] => 0
    [:input_35] => 1
    [:input_36] => 1004
    [:input_37] => 1021
    [:input_38] => 1022
    [:input_39] => 1023
    [:input_40] => 1024
    [:input_41] => 1013
    [:input_42] => 1017
    [:input_43] => 1019
    [:input_44] => 1010
    [:input_45] => 1018
    [:input_46] => 1011
    [:input_47] => 1014
    [:input_48] => 1015
    [:input_49] => 1025
    [:input_50] => 1020
    [:input_51] => 1012
    [:input_52] => 1016
    [:input_53] => 1026
    [:input_54] => 1006
    [:input_55] => 1005
    [:input_56] => 1007
    [:input_57] => 1008
    [:input_58] => 1009
)
Show More...